Match ends, Northampton Town 1, Oldham Athletic 2.
Substitute Lee Irwin grabbed a stoppage-time winner as Oldham won at Northampton.
John-Joe O'Toole cancelled out Tope Obadeyi's first-half opener late in the game but Irwin came off the bench to bag the winner and keep Oldham three points above the League One relegation zone.
Both sides had early chances, O'Toole tested Connor Ripley while Obadeyi fired wide at the other end before Ryan McLaughlin shot over.
O'Toole should have given Cobblers the lead after Keshi Anderson set him up but he allowed Ripley to make a routine save.
And moments later Ripley denied Anderson in a one-on-one situation before then keeping out Michael Smith's header.
The visitors took a 23rd-minute lead when Aaron Holloway got into the box and set up Obadeyi who finished from close range.
Hiram Boateng shot wide before Smith missed a great chance to equalise when he volleyed wide from Neal Eardley's cross and Anderson was denied by Ripley.
Both sides had chances early in the second half. Anderson was again denied by Ripley, as was Boateng, while Holloway was thwarted by Adam Smith who then dealt with Aiden O'Neill's header.
O'Toole snatched an 84th-minute equaliser, netting from close range after substitute Marc Richards was thwarted.
But Oldham's late pressure paid off in stoppage time when Irwin fired into the bottom corner from the edge of the box.
Report supplied by the Press Association.
- 11WyldeSubstituted forMcCourtat 75'minutes
- 31TaylorBooked at 24mins
- 8BoatengSubstituted forBeautymanat 84'minutes
- 24SmithSubstituted forRichardsat 63'minutes
- 8BanksBooked at 74mins
- 6O'NeillSubstituted forFaneat 78'minutes
- 30ObadeyiSubstituted forErwinat 68'minutesBooked at 90mins
- 7FlynnSubstituted forTaylorat 68'minutes
- Brett Huxtable
- Shots on Target
Second Half ends, Northampton Town 1, Oldham Athletic 2.
Lee Erwin (Oldham Athletic) is shown the yellow card for excessive celebration.
Goal! Northampton Town 1, Oldham Athletic 2. Lee Erwin (Oldham Athletic) left footed shot from outside the box to the bottom right corner. Assisted by Aaron Holloway.
Marc Richards (Northampton Town) wins a free kick in the attacking half.
Foul by Ousmane Fane (Oldham Athletic).
Corner, Oldham Athletic. Conceded by Jak McCourt.
Foul by Gabriel Zakuani (Northampton Town).
Aaron Holloway (Oldham Athletic) wins a free kick on the left wing.
Foul by John-Joe O'Toole (Northampton Town).
Anthony Gerrard (Oldham Athletic) wins a free kick in the attacking half.
Corner, Oldham Athletic. Conceded by Neal Eardley.
Goal! Northampton Town 1, Oldham Athletic 1. John-Joe O'Toole (Northampton Town) right footed shot from very close range to the bottom left corner.
Substitution, Northampton Town. Harry Beautyman replaces Hiram Boateng.
Hand ball by Ousmane Fane (Oldham Athletic).
Corner, Oldham Athletic. Conceded by Adam Smith.
Attempt saved. Lee Erwin (Oldham Athletic) right footed shot from the left side of the box is saved in the top right corner.
Attempt missed. John-Joe O'Toole (Northampton Town) right footed shot from the centre of the box is close, but misses to the right.
Foul by Keshi Anderson (Northampton Town).
Ryan McLaughlin (Oldham Athletic) wins a free kick on the left wing.