Northampton Town were beaten 3-1 by Bury, having taken the lead but unable to hold out against a team in the running for promotion.
The Cobblers had struck first through Andy Williams, but Chris Stokes equalised for the home side before half-time.
Second half goals from Danny Mayor and Nicky Maynard ensured victory for a home side that moved back into the automatic promotion spots as a consequence.
While the home side toasted a much needed three points, Northampton remain in a midtable 15th position, ahead of a final home game of the season next weekend against a Yeovil side who need points to help their bid to stay up.
Northampton had started better in a fast and open first half, with Shay Facey, David Buchanan and Daniel Powell all going close before an unmarked Williams headed in Sam Foley’s cross from the away side’s right to put them in front.
Bury had been beginning to assert themselves at the point the Cobblers struck, and would equalise before half-time as Stokes rifled in Nicky Adams’ cross.
The second half was a tighter match, but it was Bury who would seize the breakthrough after the hour. Moments after hitting a long range effort just wide, Mayor curled a fine effort into the top corner to put his side ahead for the first time.
A late break from Bury then ended the contest, with Adams crossing for Maynard to tap in and seal victory for the Shakers.