I think that was the general election in November, could be wrong.
Foley was beaten in a general election, not a primary. It’s not uncommon to defeat speakers in the general election, since they often take positions on national issues that directly oppose local positions.