Andrew Hevesi , the son of the state comptroller , Alan G. Hevesi , won a special election yesterday to serve out the remainder of the term of Assemblyman Michael Cohen of Queens , who left office unexpectedly in March , citing '' family obligations . ''