The Manchester mayor had applied to stand as a candidate for the upcoming parliamentary by-election in Gorton and Denton.