 In 1994 , when Harriet Harman was moved by the newly elected Labour Leader Tony Blair to become Shadow Secretary of State for Employment , Miliband stayed on in the Shadow Treasury team and was promoted to work for Shadow Chancellor Gordon Brown . In 1995 , with encouragement from Gordon Brown , Miliband took time out from his job to study at the London School of Economics , where he obtained a Masters in Economics . After Labour 's 1997 landslide victory , Miliband was appointed as a special adviser to Chancellor Gordon Brown from 1997 to 2002 . 
