The game desperately needed a goal before the home side finally broke the deadlock.
Darren Bent scored twice, either side of a stunning strike from Mark Viduka, to snatch victory with four minutes left.