Liam Davis' injury-time strike secured a point for Northampton as they came from two goals down to draw with play-off chasing Rotherham.
The Millers went ahead when Paul Rodgers deflected Nicky Law's shot into his own net and Ryan Taylor struck from 15 yards to make it 2-0 at the break.
Substitute Leon McKenzie finished off a goalmouth scramble to make it 2-1.
And Davis moved the Cobblers four points above the bottom two when he fired home through a crowded box.
The Cobblers, who are 17 games without a win, have moved above Burton Albion into 21st place but Gary Johnson's side have played a game more than the teams below them.
Northampton Town manager Gary Johnson told BBC Radio Northampton:"The first half we were the boys playing against men. They were pushing us around and winning everything. Second half, they showed what they can do to a top two
"I mustn't have to get that angry at half-time every game. I can't get that angry before a game so it's up to them to get their mental toughness and commitment and spirit going earlier.
"The club showed a bit of character. We came back from 2-0, and not only the players, but the supporters as well."