<Tr> <Td> 18 </Td> <Td> Ram Prakash Gupta MLC </Td> <Td> </Td> <Td> 12 November 1999 </Td> <Td> 28 October 2000 </Td> <Td> 7002351000000000000 ♠ 351 days </Td> </Tr> <Tr> <Td> 19 </Td> <Td> Rajnath Singh Haidergarh </Td> <Td> </Td> <Td> 28 October 2000 </Td> <Td> 8 March 2002 </Td> <Td> 7002496000000000000 ♠ 1 year, 131 days </Td> </Tr> <Tr> <Td>--</Td> <Td> Vacant (President's rule) </Td> <Td> </Td> <Td> 8 March 2002 </Td> <Td> 3 May 2002 </Td> <Td> 7001560000000000000 ♠ 56 days </Td> <Td> N / A </Td> <Td> </Td> <Td> Fourteenth Assembly (2002--07) (2002 election) </Td> <Td> </Td> </Tr> <Tr> <Td> (17) </Td> <Td> Mayawati (3) Harora </Td> <Td> </Td> <Td> 3 May 2002 </Td> <Td> 29 August 2003 </Td> <Td> 7002483000000000000 ♠ 1 year, 118 days </Td> <Td> Bahujan Samaj Party </Td> <Td> </Td> </Tr>

Who has the chief minister for longest time