Substitute Zavon Hines scored an injury time goal in a 2-1 win against Aston Villa to lift struggling West Ham out of the bottom three.
Hines fired home after a fine run by Scott Parker as the game looked to be heading for a draw.
Mark Noble had put the struggling home side in front from the penalty spot in first-half injury time. England goalkeeper Robert Green then saved Ashley Young's 49th minute spot-kick before the Villa winger atoned for his error with a curling 25-yard equaliser two minutes later.