 One of the earliest incumbents , Sir Walter Mildmay , member for Peterborough from 1553 to 1554 , subsequently became Chancellor of the Exchequer from 1559 to 1589 . Later , in the nineteenth century , William Elliot , Whig member from 1802 until his death in 1819 , was Chief Secretary to the Lord Lieutenant of Ireland between 1806 and 1807 ; the Hon. William Lamb ( later the 2nd Viscount Melbourne ) , Whig member from 1816 to 1819 , became Home Secretary in 1830 then Prime Minister from 1834 to 1841 ; and Sir James Scarlett ( later the 1st Baron Abinger ) , Whig member from 1819 to 1830 , was , from 1827 , Attorney General for England and Wales . 
