Who was the last sitting president to lose the bid for re-election for a second term?

History Trivia: Who was the last sitting president to lose the bid for re-election for a second term?