He was elected as a Fianna Fáil Teachta Dála ( TD ) for the constituency of Dublin North-West at the 1997 Irish general election , defeating the sitting Fine Gael TD Mary Flaherty to win a second seat for the Fianna Fáil in the 4-seater constituency .