Wigan Athletic's UEFA Europa League hopes hang by a thread after a last-gasp 2-1 defeat to Zulte Waregem on Thursday.
Leon Barnett put the hosts ahead early on, brilliantly volleying home from the edge of the penalty area after a Jordi Gomez miscue.
An open first half ended even, though, young Wigan goalkeeper Lee Nicholls spilling an effort from Thorgan Hazard over his own goal line.
Wigan looked like the only team likely to score in the second period, but Junior Malanda slammed home an 88th-minute winner to move the Belgians second in Group D with one game to play.
The Championship side must win at Maribor in their final game, while hoping Waregem lose at runaway group winners Rubin Kazan, although the Slovenian champions remain in the hunt themselves.
Owen Coyle made six changes from Saturday's 1-0 defeat to Brighton and Hove Albion, Manchester United loanee Nick Powell starting at the head of Wigan's attack with Gomez supporting. Waregem came into the clash on the back of a six-game unbeaten run but still made three alterations from their weekend win over Mechelen.
The hosts were ahead after just seven minutes as Callum McManaman and Gomez worked a short corner routine, only for the Spaniard to mis-hit his effort. However, the ball fell perfectly for Barnett, who slammed home his fourth goal of the season.
Within 10 minutes of the opener, McManaman almost doubled the lead and Waregem midfielder Sven Kums scuffed wide after electric build-up play from Frederic Duplus on the left.
James McClean ended a strong run with a shot from the left channel that visiting keeper Sammy Bossut saved well, although the Irishman had better options centrally.
And Bossut's sharpness was rewarded in part through an error by his opposite number as the visitors pounced on an error from James McArthur to drive up the field.
The ball eventually found Hazard, whose firm effort was straight at Nicholls, but the 21-year-old was caught in two minds and could only drop the ball over the line.
Powell stung Bossut's palms with a well-struck shot on the hour, while Nicholls reacted well to palm Hazard's deflected free-kick behind eight minutes later as the sides firmed up after the break.
McArthur drilled a 20-yard shot wide with 10 minutes on the clock as the hosts pushed for a winner that looked as though it would fail to materialise.
But Malanda got on the end of fellow substitute Idrissa Sylla's cutback and lashed an unstoppable effort past Nicholls to deflate the home crowd and put Waregem in the driving seat for a spot in the next phase.
|UEFA Champions League Review: Ajax crash out after home defeat|
|Blackpool handed suspended deduction|
|Bayern Munich 3 Milan 0: Guardiola and De Jong lock horns in tunnel|
|Akpom, Ojo and Solanke on the move|
|McClaren: No Newcastle bid for Austin|
|Real Madrid 2 Tottenham 0: Bale on target against former club|
|Mangala vows to improve on debut campaign|
|Tomlin completes Bournemouth switch|
|Astra v West Ham: Page hungry for first-team action|
|Di Maria arrives in Qatar for PSG medical|
|Vitesse v Southampton: Caulker prepared to wait for his chance|
|UEFA rejects Fenerbahce´s Fred appeal|
|Watford show support for assaulted fan as police charge six|
|Ibrahimovic to miss PSG opener|
|Klopp suited to Bayern job - Watzke|
|Eredivisie season-opener postponed due to police strike|
|Dortmund v Wolfsberger: Tuchel set for home bow|
|Griezmann at the double in Atletico win|
|Japan v South Korea: Halilhodzic calls for ´pride´|
|Mourinho enjoying improved relationship with Abramovich|
|Gradel agrees Bournemouth return|
|Inter switch an ´easy decision´ for Miranda|
|Bojan eyes early comeback|
|Vitesse hopeful over Solanke loan deal|
|Pedro will decide his own future - Luis Enrique|
|Iniesta handed Barcelona armband|
|Kukesi punished after Europa League abandonment|
|Leno hints at Leverkusen exit|
|Benitez explains Ronaldo absence|
|Pochettino backs Kane to be among world´s best|
|Messi not ruled out of Mexico friendly - Martino|
|China v North Korea: Kim´s side look for another win|
|River Plate v Tigres UANL: Copa Libertadores final evenly poised|
|Real target Ceballos focused on Betis - Mel|
|Torres: I´d give my life to win La Liga with Atletico|
|Platini can lead FIFA change - Fernandez|
|Mel: Betis won´t be signing Osvaldo|
|Ferrero defends Samp boss Zenga|
|Pochettino expects Spurs improvement|
|Bale ideal for United - Robson|
|Ferdinand: Di Maria will regret United failure|
|Benitez pleased with goalkeepers as De Gea transfer saga continues|
|Guardiola tips fit Schweinsteiger to shine|
|Confident Oxlade-Chamberlain hits back at Keane|
|Ferdinand: Stones would be ´a lunatic´ to join Chelsea|
|Qarabag v Celtic: Gordon wants positivity from Scottish champions|
|Higuain rejects extension from Napoli|
|Zamora returns to Brighton|
|West Ham can cope without Valencia - Gold|
|Wickham loses on Palace debut|
|Guardiola: No problem with Matthaus and Effenberg comments|
|Cartabia excited by Deportivo loan|
|Lyon confirm Rafael deal|
|Hysaj agrees deal to follow Sarri to Napoli|
|Rafael says his goodbyes to Manchester United|
|Dos Santos ready to get going with Galaxy|
|Pochettino rejects Soldado exit talk|
|Metatarsal misery for Mulumbu|
|Benitez: Benzema and Bale going nowhere|
|Mihajlovic: Ibrahimovic would make Milan title contenders|
|Hughes not taking any risks with Bojan|
|Guardiola relishing Audi Cup test|
|Di Maria ´taking a step up´ - Silva|
|Leicester bring in defender Benalouane|
|Deulofeu doubtful for Premier League opener|
|West Ham striker Valencia out for three months|
|UEFA: Qarabag-Celtic to go ahead|
|Palace seal Wickham swoop|
|Ronaldo and Benzema to miss Audi Cup|
|Marotta: Juventus could lose Pogba|
|Kante completes Leicester switch|
|Khedira ruled out for two months|
|FA accepts Mourinho criticism of Wembley surface|
|Robben rubbishes injury talk|
|Marchisio expects Milan title challenge|
|Rafael set for Lyon move|
|Celtic ´seeking reassurances´ over Qarabag pitch|
|Wenger beating Mourinho does not affect Chelsea - Zouma|
|Rooney moved by Everton welcome|
|Mancini not worried by lack of Inter goals|
|Coloccini wants to finish career at Newcastle - McClaren|
|Ramsey: Pressure to win trophies is nothing new|
|Terry: Wembley defeat could be a ´blessing in disguise´|
|Blatter not running for IOC re-election|
|Bendtner: Wolfsburg can challenge Bayern for Bundesliga honours|
|Liverpool relishing Britannia return, says Henderson|
|Everton big enough to keep Stones - Martinez|
|MLS Review: Fire stun Dallas as goals dry up|
|New Atletico signings excite Raul Garcia|
|Cahill expects Arsenal title challenge|
|Jovetic happy with Inter debut|
|Luis Enrique: Barca defence must improve|
|Yanev calls for calm after ugly scenes in friendly|
|Coppa Italia Review: Cittadella romp to victory, Brescia rely on penalties|