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.
|Conte laments Italy World Cup failure|
|Amiens 1 Monaco 1: Jovetic rescues point but champions give PSG boost|
|Stuttgart 2 Borussia Dortmund 1: Bosz pressure builds after more Burki mishaps|
|Sunderland target Coleman steps down as Wales manager|
|Conte´s wife tells him to grow a beard – Conte grows a beard|
|Simeone rules out Everton job, promising ´a couple of years at least´ at Atletico|
|Pique to miss Barcelona´s Leganes trip over personal matter|
|UEFA closes Roma ´monkey chanting´ case|
|Don´t worry about Messi renewal, Valverde tells Barcelona fans|
|´Griezmann? We´ll see´ – Valverde won´t rule out Barcelona pursuit of Atletico star|
|Unsworth surprised to see Allardyce snub Everton|
|Mourinho has ´immense respect´ for Benitez|
|Howe backs Defoe to make World Cup squad|
|Everton speculation out of my control - Silva focusing on Hornets|
|Conte concerned by Manchester City´s breakaway lead|
|Man City results ´perfect´, but Guardiola demands improvement|
|David Luiz back in Chelsea squad, Conte confirms|
|Recovered Klopp offers Liverpool fitness update|
|Guardiola confident Aguero in ´perfect´ condition despite hospital trip|
|Ibrahimovic, Pogba and Rojo back for Manchester United|
|Heynckes compiling list of potential successors|
|Modric & Carvajal fit for Madrid derby|
|Bayern begin talks over Wagner deal|
|Pulis angered as Chadli sidelined for ´foreseeable future´|
|Neymar to join Ronaldo at Real Madrid? Zidane speaks out on PSG star|
|Guardiola & Sane complete Man City award double|
|Brave Chapecoense secure top-flight status|
|Tottenham have overtaken Arsenal as north London´s best - Sherwood|
|Brisbane Roar 3 Melbourne City 1: Papadopoulos at the double as hosts finally win|
|Seaman: Wenger must start Lacazette against Tottenham|
|I am more than just a goal machine - Ronaldo ignores Real Madrid criticism|
|Skriniar not interested in Barcelona speculation|
|France need Benzema, says Aulas|
|Van Dijk could leave Southampton in January|
|Sanchez snubbed Barcelona switch - Osorio|
|Atletico Madrid v Real Madrid: Simeone and Zidane face dangerous, defining Derbi|
|Aubameyang baffled by Dortmund suspension|
|Pochettino lauds Wenger longevity as he eyes 20 years at Spurs|
|Ronaldo: Real Madrid don´t fear PSG|
|Zenit´s Mancini not thinking about Italy job|
|Wenger advises Pochettino to fight the ´fear´ of winning trophies|
|Ronaldo: I want seven Ballons d´Or... and seven children!|
|Howedes ready for long-awaited Juventus debut|
|Bayern´s Wagner interest confirmed by Nagelsmann|
|Dyche ´amazed´ at persistent Everton talk|
|Manchester United post record first-quarter revenues|
|Hodgson confident Benteke will be fit for Everton clash, unsure over Loftus-Cheek|
|Klopp returns to Liverpool training after hospital visit|
|Moreno urges Coutinho to reject Barcelona switch|
|Hamsik refuses to be distracted by Maradona record|
|CAS rejects Adrien Silva´s appeal|
|Aubameyang dropped by Dortmund for ´disciplinary reasons´|
|Aguero declares himself fit to face Leicester City|
|If Griezmann isn´t committed, he should leave – Koke|
|Knee surgery to sideline PSG´s Motta|
|Kane the same as Lewandowski, Eboue proclaims|
|Let Neymar focus on football - Emery|
|Spurs quartet return but Alderweireld set for longer absence|
|Ibrahimovic eyes different role on Manchester United return|
|Transfer target Messi was beyond Manchester City, says Robinho|
|´Ultimate defender´ Zouma one of Premier League´s best, claims Shawcross|
|Cantona baffled by Neymar´s PSG move|
|Loftus-Cheek must return to Chelsea, says Willian|
|Central Coast Mariners 1 Adelaide United 2: Kitto snatches dramatic win|
|Cazorla´s fitness woes the worst injury Wenger has known|
|Wenger trusts Lacazette completely|
|Atletico Madrid v Real Madrid: Demolition derbies, Raul´s revenge and other memorable capital clashe|
|Mourinho: Ibrahimovic will return in 2017|
|Spain and England at risk as World Cup draw pots confirmed|
|Atletico Madrid v Real Madrid: Cristiano Ronaldo, King of El Derbi|
|Gareca: World Cup spot is for the Peruvian people|
|World Cup: The 32 qualified teams|
|Peru 2 New Zealand 0 (2-0 agg): South Americans qualify for World Cup after 36-year wait|
|Ronaldo congratulates Corinthians on seventh Brazilian title|
|Van Dijk focused ahead of Liverpool clash – Pellegrino|
|Ravanelli: I´d bend over backwards to bring back Conte|