Jack Cork headed a last-minute winner as Burnley came back from a goal down to stun Derby County at Turf Moor.
The Rams looked set for the spoils after Luke Moore crashed in a first-half opener from outside the box that deflected into the top left corner.
With eight minutes left, Dean Moxey fouled Dean Marney and Tyrone Mears curled in the free-kick from 25 yards.
Burnley's tails were up and Wade Elliott crossed dangerously from the right for Cork to glance in his header.
The miraculous turnaround helped to lift the hosts into the play-off places as they secured only a second win in eight matches and also got within one point of their opponents.
Burnley started in breezy fashion with Chris Iwelumo and Andre Bikey wasting good chances to open the scoring.
The deadlock was broken on 19 minutes by the visitors when Moore, on loan from Aston Villa, scored his third of the season as he cut inside Bikey to rifle in a heavily-deflected shot past the helpless keeper Lee Grant.
Derby looked happy to sit on their lead but the warning signs were evident on the hour as Frank Fielding was forced into a smart save from Ross Wallace.
And in the 82nd minute Nigel Clough's men paid a heavy price for their conservative approach when Mears powered in a tremendous curling free-kick over the wall.
Burnley looked intent on stealing all the points and the homes fans were not disappointed when Cork leapt above the Derby defence to expertly nod in Elliot's cross in injury time.
Live text and stats
Saturday, 27 November 2010
08 Marney (Alexander 80)
19 Rodriguez (Guidetti 73)
09 Iwelumo (Thompson 63 yellow card)
04 Green yellow card
11 Pearson (Leacock 54)
27 Bueno (Pringle 14)
28 Moore (Porter 81)
Ref: HaywoodAtt: 13,790
Attempts on target
Attempts off target
90:00+4:29 The referee blows for the end of the match.
90:00+2:56 Tomasz Cywka has an effort at goal. Save made by Lee Grant.
90:00+1:39 Jack Cork takes a shot from 25 yards. Frank Fielding makes a save.
90:00+0:05 Assist by Wade Elliott.
90:00+0:05 GOAL - Jack Cork:Burnley 2 - 1 Derby Jack Cork grabs a headed goal from inside the penalty box. Burnley 2-1 Derby.
88:57 The ball is sent over by Ross Wallace, save made by Frank Fielding.
87:09 Andre Bikey gives away a free kick for an unfair challenge on Tomasz Cywka. Robbie Savage takes the direct free kick.
Correction - 83:14 Inswinging corner taken by Ben Pringle, Andre Bikey makes a clearance.
83:14 Inswinging corner taken right-footed by Ben Pringle.
82:55 Inswinging corner taken by Ben Pringle from the left by-line.
82:00 GOAL - Tyrone Mears:Burnley 1 - 1 Derby Tyrone Mears finds the back of the net with a goal from just outside the area to the bottom left corner of the goal. Burnley
80:56 Substitution Chris Porter replaces Luke Moore.
80:00 Free kick awarded for a foul by Dean Moxey on Dean Marney.
80:00 Substitution Graham Alexander on for Dean Marney.
74:11 Free kick awarded for a foul by Steven Thompson on Shaun Barker. Dean Leacock takes the direct free kick.
74:11 Booking Booking for Steven Thompson.
72:34 Unfair challenge on Andre Bikey by Luke Moore results in a free kick. Direct free kick taken by Lee Grant.
72:09 Substitution Jay Rodriguez leaves the field to be replaced by John Guidetti.
71:55 Headed effort from deep inside the penalty area by Clarke Carlisle misses to the right of the target.
71:37 Tyrone Mears takes a shot. Shaun Barker gets a block in.
71:14 Inswinging corner taken left-footed by Ross Wallace from the right by-line.
70:03 Steven Thompson is penalised for handball and concedes a free kick. Frank Fielding restarts play with the free kick.
66:48 Andre Bikey challenges Luke Moore unfairly and gives away a free kick. Robbie Savage crosses the ball from the free kick right-footed
from right wing, blocked by Andre Bikey.
66:08 The referee blows for offside. Free kick taken by Frank Fielding.
65:33 Shot by Ross Wallace.
64:11 Brian Easton concedes a free kick for a foul on Tomasz Cywka. Free kick crossed right-footed by Tomasz Cywka, Clarke Carlisle
manages to make a clearance.
63:10 Inswinging corner taken right-footed by Dean Marney.
62:16 Substitution Steven Thompson is brought on as a substitute for Chris Iwelumo.
60:50 Chris Iwelumo produces a header from inside the area that goes over the bar.
60:06 Jay Rodriguez takes a shot from 18 yards. Save by Frank Fielding.
59:26 Inswinging corner taken by Ross Wallace.
56:05 Free kick awarded for a foul by Clarke Carlisle on Luke Moore. Dean Moxey takes the free kick.
53:23 Unfair challenge on Tomasz Cywka by Brian Easton results in a free kick. John Brayford takes the direct free kick.
53:23 Substitution Dean Leacock comes on in place of Stephen Pearson.
51:13 Dean Marney has an effort at goal from outside the penalty box which goes wide right of the target.
47:30 Corner taken by Dean Marney played to the near post, Robbie Savage manages to make a clearance.
45:01 The referee starts the second half.
45:00+2:36 The half-time whistle blows.
45:00+1:51 Effort from outside the penalty box by Jay Rodriguez goes wide right of the target.
45:00+0:39 Jay Rodriguez produces a left-footed shot from just outside the penalty box that misses to the left of the target.
43:45 Jack Cork gives away a free kick for an unfair challenge on Ben Pringle. Paul Green takes the free kick.
43:15 Paul Green gives away a free kick for an unfair challenge on Brian Easton. Wade Elliott takes the direct free kick.
43:15 Booking Paul Green is shown a yellow card for unsporting behaviour.
41:32 Corner taken left-footed by Ross Wallace, James Bailey manages to make a clearance.
38:16 Andre Bikey challenges Luke Moore unfairly and gives away a free kick. The free kick is swung in right-footed by Robbie Savage,
Clarke Carlisle makes a clearance.
35:15 Wade Elliott takes a short corner.
35:11 Dean Marney crosses the ball, Robbie Savage gets a block in.
31:06 The referee blows for offside against Luke Moore. Lee Grant takes the indirect free kick.
30:47 Shot by Jay Rodriguez. Frank Fielding makes a comfortable save.
27:01 Dean Marney has an effort at goal from outside the penalty box missing to the wide right of the target.
25:02 Shot from just outside the area by Wade Elliott misses to the left of the target.
24:39 Luke Moore is flagged offside by the assistant referee. Free kick taken by Clarke Carlisle.
22:22 Inswinging corner taken left-footed by Ross Wallace, clearance made by Dean Moxey.
21:52 The ball is sent over by Tyrone Mears, clearance by James Bailey.
20:45 Effort from the edge of the penalty box by Dean Marney goes wide of the right-hand upright.
18:53 GOAL - Luke Moore:Burnley 0 - 1 Derby A goal is scored by Luke Moore from outside the penalty area to the top left corner of the goal. Burnley 0-1 Derby.
16:28 Inswinging corner taken right-footed by Dean Marney from the left by-line, Andre Bikey takes a shot. Comfortable save by Frank
14:29 Brian Easton crosses the ball, comfortable save by Frank Fielding.
13:34 Substitution Alberto Bueno goes off and Ben Pringle comes on.
8:18 Tomasz Cywka gives away a free kick for an unfair challenge on Clarke Carlisle. Lee Grant takes the free kick.
7:39 Foul by Dean Marney on Alberto Bueno, free kick awarded. Direct free kick taken by Robbie Savage.
6:55 Dean Marney produces a right-footed shot from just outside the area that goes harmlessly over the bar.
4:09 Paul Green delivers the ball, Brian Easton gets a block in.
3:03 Header by Chris Iwelumo from deep inside the penalty area misses to the left of the goal.
2:38 Wade Elliott is ruled offside. Free kick taken by Paul Green.
0:00 The ref blows the whistle to begin the match.
Live text and data provided by The Press Association.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.