Danny Ings scored twice as Burnley edged Huddersfield to move back into the top two in the Championship.
The 21-year-old opened the scoring, latching onto David Jones's ball, but Martin Paterson levelled against his old club from Oliver Norwood's corner.
Jones hit the bar before another Ings effort, with the outside of his right foot, made it 2-1 at half-time.
Kieran Trippier sealed the win after rounding Alex Smithies before Paterson scored a late consolation.
Burnley have won only three of their past 11 Championship matches, a run that saw them surrender their early lead in the Championship
Ings's goals were his 18th and 19th in all competitions this season as Sean Dyche's men overtook second-placed Derby - who lost 1-0 to Wigan - to stay four points behind leaders Leicester.
Huddersfield forward Paterson turned down a new contract at Burnley in the summer to join the Terriers but, despite his brace at Turf Moor, he might be regretting that decision with his current side 13th in the table.
His old team led as early as the sixth minute when Ings converted Jones's hopeful ball forward. However, the Terriers levelled 14 minutes later when Paterson scored from Norwood's set-piece.
The Clarets had the better chances and Smithies did well to keep Jones out before the same player hit the crossbar from a free-kick - Town lucky not to have Murray Wallace sent off for a professional foul on Ings in the build-up.
And Ings gave the hosts the lead going into the break when he was set up by Trippier, who then sealed the win in the second half when he went around the goalkeeper to fire a shot in off the underside of the bar.
Paterson created a tense finale when he turned in Paul Dixon's cross but it was not enough.
Burnley manager Sean Dyche:
"There were some real good pockets of football, we looked back to what we're about, really, because we created so many chances. The amount of good quality play from us, the number of chances we created, it wasn't as convincing as arguably it could have been - but all credit to Huddersfield.
"I enjoyed some of the play and Kieran [Trippier] probably summed it up right when he said we showed framework and freedom. We want the players to play with a shape defensively but also use their own understanding of the game, and then there was a champagne moment for Kieran.
"They didn't lay down, they didn't accept defeat easily and kept at it, they had nothing to lose."
Huddersfield manager Mark Robins:
"After the way we've been playing of late, I thought we were disappointing for large parts of the game. I didn't think we deserved anything from the game because I didn't think we played particularly well and I thought it took us until 3-1 down to get any life in us.
"But having said that, we could have got something out the game in the end and I think had we done so it would've been great - but it would have been slightly unjust. Their first goal was very dubious in all fairness, he was offside, but I'm not going to moan too much.
"We just had a game against Burnley at home where a couple of decisions went our way, it's swings and roundabouts in football sometimes. Even though we haven't played to our potential, we were within a whisker of grabbing a draw."
- 01 Heaton
- 02 Trippier
- 06 Mee (Lafferty - 71' )
- 08 Marney Booked (Stock - 84' )
- 04 Duff
- 05 Shackell
- 26 Treacy (Stanislas - 84' )
- 14 Jones
- 09 Vokes
- 10 Ings
- 37 Arfield
- 03 Lafferty
- 11 Stanislas
- 12 Cisak
- 15 Edgar
- 19 Kightly
- 22 Stock
- 28 Long
- 01 Smithies
- 12 Hammill (Scannell - 85' )
- 03 Dixon
- 33 Lynch (Gerrard - 25' )
- 15 Wallace Booked
- 27 Smith
- 06 Hogg (Holmes - 52' )
- 08 Clayton
- 11 Ward
- 17 Paterson Booked
- 04 Norwood
- 02 Woods
- 07 Scannell
- 10 Gobern
- 13 Bennett
- 14 Stead
- 38 Holmes
- 39 Gerrard
Ref: David Coote