In the 1832 congressional elections in Pennsylvania, Joel B. Sutherland (D) was re-elected to the 1st district, but resigned his seat to accept a judgeship. He then subsequently resigned that judgeship to run in the special election which was called to fill the vacancy caused by his original resignation, and won that election.
Election results
There were also 57 votes for someone with the surname of Martin, first name and party affiliation unknown.
References
Pennsylvania's 1st congressional district special election, 1833 Wikipedia(Text) CC BY-SA