edward mahama lost the position of presidential candidate of the pnc to hassan ayariga in the run up to the 2012 general election. however, he won the position back from ayariga for the 2016 election. after the defeat, ayariga left the pnc to form another party, the all people's congress (apc).