 However, the Samajwadi Party had expelled him in 2008, and Mayawati refused him a ticket under BSP, so he stood from the Apna Dal party from Pratapgarh, but he lost (ranked fourth).In Uttar Pradesh Elections 2012, Ahmed fought under the Apna Dal banner from the Allahabad (West) constituency.He filed his nomination from jail.