Preston North End defeated Oldham in a hard-fought match to deepen the Latics' relegation fears.
Jose Baxter twice came close to putting the visitors in front, but fired a 20-yard strike wide and forced Declan Rudd into a superb save from his free-kick.
The hosts began to take control and Jack King hit the crossbar, before Nicky Wroe slammed home a penalty after Jonathan Grounds handled in the box.
Will Hayhurst struck late on, with the Oldham keeper up for a corner.
The result leaves Oldham only outside the relegation places on goal difference, but they still have a game in hand on those around them.