It was a dramatic five-goal thriller at the New York Stadium as Rotherham United secured back-to-back home wins.
Daniel Nardiello scored twice as Rotherham stayed fourth with a 3-2 win over 10-man Oldham - though they left it late.
Nardiello put the Millers in front from the spot in the 21st minute and Oldham’s task got harder when David Mellor was sent off five minutes before the break.
But Cristian Montano equalised in the 44th minute and the visitors grabbed a shock lead nine minutes later through Matteo Lanzoni.
Lee Frecklington made it 2-2 with a glancing header before Nardiello snatched the points in injury time.