Ashley Barnes hit a stunning last-minute winner as Burnley climbed into the top half of the Premier League with a pulsating victory over Crystal Palace at Turf Moor.
A flying start had the hosts in front through Sam Vokes inside 90 seconds, and their lead was doubled in the 14th minute when Johann Berg Gudmundsson drilled home, although Palace goalkeeper Steve Mandanda should have done better.
Palace pulled one back when Connor Wickham scored with his first touch after coming off the bench.
And Palace levelled on 81 minutes when Matt Lowton inexplicably blocked Andros Townsend's cross with his hand in the area and Christian Benteke slotted home the penalty.