A goal seven minutes into time added saw Rotherham United lose the South Yorkshire derby showdown with Sheffield Wednesday at a packed AESSEAL New York Stadium.
The Millers had led 2-1 in the 87th minute through Ben Pringle and Jordan Bowery.
But Atdhe Nuhiu’s 92nd-minute header and Kieran Lee’s cool 97th-minute finish turned the match on it’s head.
With relegation rivals Wigan drawing at home to Bolton, defeat leaves Steve Evans’ men five points clear of the drop zone going into the international break.
They had led in the 56th minute through Pringle’s deflected shot, with Caolan Lavery equalising with a header with four minutes of normal time remaining.
The Millers thought they had the match won with Bowery’s goal, but Atdhe Nuhiu headed in Lewis McGugan’s cross for the Owls’ equaliser.
The first half had finished goalless before the match exploded into life after the interval.
Rotherham United (4-4-2): Martinez; Hunt, Broadfoot, Morgan, Lafferty; Wilson, Smallwood, Frecklington, Pringle, Sammon (Bowery 84), Derbyshire (Milsom 90). Subs not used: Collin, Brindley, Green, Milsom, Newton, Yates.
Sheffield Wednesday (4-5-1): Westwood; Vermijl, Lees, Zayatte, Dielna; Isgrove (Lavery 58), Lee, McGugan, Hutchinson (Maguire 73), Helan (May 73); Nuhiu. Subs not used: Kirkland, Buxton, Mattock, Maguire, Melo.
Referee: Oliver Langford (West Midlands).