Championship bottom club Derby County moved to within 11 points of safety as they scored a goal in each half to beat promotion-chasing Stoke City.
Teenager Luke Plange gave the Rams an early lead, his second goal in three games, only for Stoke substitute Tom Ince to leave the bench and net on 78 minutes against his old club, just seven minutes after coming on.
But Colin Kazim-Richards put Derby back in front with a low left-foot finish on 85 minutes to earn Wayne Rooney's side their third straight win.
That puts Derby, docked 21 points by the EFL, within four of 23rd-placed Barnsley and 11 behind fourth-from-bottom Reading, while Stoke have slipped four points adrift of the play-off pack, having now won just once in five games.