Mike Mokgwamme, the high court ruled, was appointed to the crucial municipal manager post despite being the least qualified candidate