Jamie Mackie got the winner as QPR came from two goals down with 13 minutes left to beat Liverpool and move out of the relegation zone.
Sebastian Coates scored a spectacular volley and Dirk Kuyt prodded in a second to put the Reds ahead.
Shaun Derry gave QPR hope with a header before Reds old boy Djibril Cisse also nodded in to haul the home side level.
A Jose Enrique error left Mackie clear to slide in an injury-time shot under keeper Pepe Reina for the QPR winner.
QPR'S REMAINING FIXTURES
- Sunderland (a)
- Arsenal (h)
- Man Utd (a)
- Swansea (h)
- West Brom (a)
- Tottenham (h)
- Chelsea (a)
- Stoke (h)
- Man City (a)
The victory was as vital for the home side as it was unlikely and helped move them two points clear of the drop zone, although third-from-bottom Bolton have a game in hand.
The loss left Liverpool's already faint hopes of a top-four finish in tatters, with the Reds a massive 12 points behind fourth-placed Tottenham after a fourth league defeat in five games.
The latest setback for the Reds was much of their own making in a turnaround which was as spectacular as the opener from centre-back Coates.
QPR seemed to be feeling the pressure of their precarious position early on, particularly after relegation rivals Blackburn had won on Tuesday.
The home side constantly gave the ball away and Liverpool had plenty of chances to take advantage as they swarmed all over their hosts.
Suarez left Nedum Onuoha trailing to burst clear on goal only to have his shot fended away by keeper Paddy Kenny before Derry blocked a Stewart Downing strike when the Reds winger seemed set to have a free shot on goal.
Kuyt had a great chance when he latched on to a Steven Gerrard corner to the far post but he was denied by another save from the overworked Kenny.
Liverpool's profligacy has been a hallmark of their season and, while it appeared to drain their belief, QPR took plenty of encouragement from weathering the early storm.
The home side eventually managed to get a view of the visitors' goal and Reds keeper Reina was a relieved figure when former Liverpool striker Cisse's 22-yard shot went just wide.
QPR began to look comfortable but it proved a false sense of security. A Stewart Downing shot was cleared off the line by Bobby Zamora and, as the ball fell in the QPR box, Coates produced an acrobatic scissors kick to finally reward Liverpool's domination.
A Luis Suarez shot hit the post and Kenny saved from Downing before Kuyt stole in to pounce on the rebound and extend Liverpool's lead on his 200th Premier League outing.
There was little sign of the drama to come until Derry pulled one back with a 77th minute header from a corner to galvanise the home side.
Cisse nodded in another after 86 minutes and, when Reds left-back Enrique missed a clearance in added time, Mackie took full advantage to complete QPR's remarkable comeback.
Queens Park Rangers
- 01 Kenny
- 13 Traore (Taiwo - 46' )
- 18 Young
- 35 Ferdinand
- 42 Onuoha
- 02 Diakite
- 04 Derry
- 07 Taarabt
- 17 Barton (Mackie - 62' )
- 23 Cisse (Buzsaky - 88' )
- 52 Zamora
- 24 Cerny
- 06 Gabbidon
- 34 Taiwo
- 14 Buzsaky
- 32 Wright-Phillips
- 10 Bothroyd
- 12 Mackie
- 25 Reina
- 03 Jose Enrique
- 23 Carragher
- 34 Kelly (Coates - 34' )
- 37 Skrtel
- 08 Gerrard
- 19 Downing
- 20 Spearing
- 26 Adam (Henderson - 46' )
- 07 Suarez (Carroll - 82' )
- 18 Kuyt
- 32 Doni
- 06 Aurelio
- 16 Coates
- 38 Flanagan
- 14 Henderson
- 33 Shelvey
- 09 Carroll
Live Text Commentary
Full Time The referee blows his whistle to end the game.90:00 +0:57
The assist for the goal came from Luke Young.90:00 +0:57 Goal scored
Goal! - Jamie Mackie - QPR 3 - 2 Liverpool Jamie Mackie finds the net with a goal from inside the penalty area to the bottom left corner of the goal. QPR 3-2 Liverpool.89:49
Martin Skrtel challenges Akos Buzsaky unfairly and gives away a free kick. Free kick crossed by Luke Young.87:42 Substitution
Substitution Akos Buzsaky replaces Djibril Cisse.85:27
Assist on the goal came from Taye Taiwo.85:27 Goal scored
Goal! - Djibril Cisse - QPR 2 - 2 Liverpool Djibril Cisse finds the back of the net with a headed goal from inside the six-yard box. QPR 2-2 Liverpool.83:24
Samba Diakite concedes a free kick for a foul on Andy Carroll. Steven Gerrard produces a strike on goal direct from the free kick.82:09
Free kick awarded for an unfair challenge on Martin Skrtel by Bobby Zamora. Jose Reina takes the direct free kick.81:27
Indirect free kick taken by Patrick Kenny.81:27 Substitution
Substitution (Liverpool) makes a substitution, with Andy Carroll coming on for Luis Suarez.81:27
The official flags Dirk Kuyt offside.79:35
Stewart Downing takes the outswinging corner, Luke Young makes a clearance.78:52
The official flags Jamie Mackie offside. Jose Reina takes the indirect free kick.78:01
Short corner taken by Adel Taarabt from the left by-line.76:20
Corner taken right-footed by Adel Taarabt,76:11
Adel Taarabt provided the assist for the goal. Dirk Kuyt has an effort at goal from outside the area missing to the wide right of the goal.76:11 Goal scored
Goal! - Shaun Derry - QPR 1 - 2 Liverpool Shaun Derry finds the back of the net with a headed goal from close in. QPR 1-2 Liverpool.74:37
Unfair challenge on Bobby Zamora by Martin Skrtel results in a free kick. Taye Taiwo produces a strike on goal direct from the free kick, Jay Spearing gets a block in.74:15
The assistant referee flags for offside against Luis Suarez. Patrick Kenny restarts play with the free kick.
Assist by Stewart Downing.71:24 Goal scored
Goal! - Dirk Kuyt - QPR 0 - 2 Liverpool Goal scored by Dirk Kuyt from close in to the bottom left corner of the goal. QPR 0-2 Liverpool.71:04
Luis Suarez has an effort at goal from deep inside the box hitting the post. Stewart Downing takes a shot. Patrick Kenny makes a save.70:29
Stewart Downing takes a shot. Save by Patrick Kenny. Stewart Downing takes a short corner.66:55
Luis Suarez fouled by Nedum Onuoha, the ref awards a free kick. Sanchez Jose Enrique restarts play with the free kick.64:36
Steven Gerrard takes the outswinging corner, Jamie Mackie makes a clearance.62:52
Outswinging corner taken right-footed by Adel Taarabt played to the near post, Martin Skrtel makes a clearance.62:16
Corner taken right-footed by Adel Taarabt from the right by-line to the near post, clearance made by Jamie Carragher.61:19
Patrick Kenny takes the free kick.61:19 Substitution
Substitution Jamie Mackie is brought on as a substitute for Joey Barton.61:19
The offside flag is raised against Steven Gerrard.60:23
Free kick awarded for a foul by Jay Spearing on Adel Taarabt. Samba Diakite takes the direct free kick.59:28
Foul by Sanchez Jose Enrique on Djibril Cisse, free kick awarded. Joey Barton crosses the ball from the free kick right-footed from right channel, Steven Gerrard makes a clearance.56:18
Stewart Downing takes a shot. Save by Patrick Kenny.53:34
Assist on the goal came from Stewart Downing.53:34 Goal scored
Goal! - Sebastian Coates - QPR 0 - 1 Liverpool Sebastian Coates gets on the score sheet with a goal from deep inside the penalty box high into the middle of the goal. QPR 0-1 Liverpool.53:34
Stewart Downing takes a shot. Clearance by Luke Young.53:07
Outswinging corner taken from the right by-line by Steven Gerrard, Anton Ferdinand manages to make a clearance.51:47
Anton Ferdinand concedes a free kick for a foul on Luis Suarez. Free kick taken by Steven Gerrard.51:02
Short corner worked by Stewart Downing.50:38
Corner taken left-footed by Stewart Downing from the right by-line to the near post, clearance made by Bobby Zamora.50:06
Samba Diakite gives away a free kick for an unfair challenge on Luis Suarez. Luis Suarez restarts play with the free kick.47:25
Free kick awarded for a foul by Joey Barton on Dirk Kuyt. Shot comes in from Steven Gerrard from the free kick, blocked by Nedum Onuoha.45:35
Djibril Cisse takes a shot. Save by Jose Reina.45:02 Substitution
Substitution Armand Traore goes off and Taye Taiwo comes on.45:02 Substitution
Substitution Jordan Henderson joins the action as a substitute, replacing Charlie Adam.45:01
The match restarts for the second half.45:00 +2:53 Half time
Half Time It is the end of the first-half.44:47
Corner taken by Joey Barton from the right by-line.43:58
Samba Diakite takes a shot.43:17
Charlie Adam gives away a free kick for an unfair challenge on Samba Diakite. Anton Ferdinand takes the free kick.41:08
Foul by Charlie Adam on Joey Barton, free kick awarded. Joey Barton takes the free kick.40:47
Djibril Cisse takes a shot. Sebastian Coates gets a block in.32:48 Substitution
Substitution Sebastian Coates is brought on as a substitute for Martin Kelly.32:48
Long range shot by Joey Barton goes wide right of the goal.30:57
Djibril Cisse has an effort at goal from outside the area missing to the wide right of the target.28:53
Inswinging corner taken right-footed by Joey Barton, Charlie Adam makes a clearance. Outswinging corner taken right-footed by Joey Barton played to the near post, clearance made by Steven Gerrard.26:14
Luis Suarez has an effort at goal from just outside the box which goes wide of the right-hand upright.22:58
Charlie Adam takes the outswinging corner, Header from deep inside the area by Martin Skrtel goes over the bar.19:57
Outswinging corner taken right-footed by Steven Gerrard from the right by-line to the near post, Bobby Zamora makes a clearance.19:46
Stewart Downing takes a shot. Blocked by Samba Diakite.17:20
Stewart Downing decides to take a short corner.16:12
Charlie Adam fouled by Bobby Zamora, the ref awards a free kick. Direct free kick taken by Jay Spearing.15:47
The assistant referee flags for offside against Luis Suarez. Patrick Kenny takes the free kick.15:03
Djibril Cisse produces a right-footed shot from outside the box and misses left.13:27
Short corner taken by Stewart Downing from the right by-line.9:15
Corner taken by Steven Gerrard from the right by-line played to the near post, Header from close in by Luis Suarez misses to the left of the goal. Dirk Kuyt takes a shot. Blocked by Luke Young.8:34
Corner taken by Steven Gerrard from the right by-line played to the near post, clearance made by Luke Young.5:46
Inswinging corner taken right-footed by Steven Gerrard from the left by-line, Armand Traore manages to make a clearance. Inswinging corner taken by Stewart Downing, Martin Skrtel takes a shot. Anton Ferdinand gets a block in.5:29
Free kick awarded for a foul by Joey Barton on Sanchez Jose Enrique. Sanchez Jose Enrique takes the direct free kick.4:50
Corner taken right-footed by Steven Gerrard from the left by-line, clearance made by Nedum Onuoha.4:33
Corner taken by Stewart Downing from the right by-line, clearance by Luke Young.3:51
Luis Suarez takes a shot. Patrick Kenny makes a save. Luis Suarez takes a shot. Save by Patrick Kenny. Corner taken by Steven Gerrard from the left by-line, Armand Traore manages to make a clearance.3:06
Jay Spearing is adjudged to have handled the ball. Free kick taken by Joey Barton.0:00
The match gets underway.
Live data and text provided by our data suppliers