Sunderland's Fabio Borini scores their second goal past West Ham United's Darren RandolphBritain Soccer Football - Sunderland v West Ham United - Premier League - Stadium of Light - 15/4/17 Sunderland's Fabio Borini scores their second goal past West Ham United's Darren Randolph Reuters / Scott Heppell Livepic
(Reuters) - Bottom club Sunderland ended their seven-match scoring drought but slipped closer to relegation after a 2-2 home draw with West Ham United on Saturday.
Wahbi Khazri equalised for Sunderland direct from a corner in the 29th minute as the hosts recovered from falling behind to Andre Ayew's fifth-minute opener for the visitors.
A seventh defeat in eight league games loomed for Sunderland when James Collins headed past Jordan Pickford immediately after the restart but there was some late joy for the hosts.
Former Liverpool player Fabio Borini had only just taken to the field to replace Billy Jones, who suffered a head injury, when he fired in a low shot past West Ham goalkeeper Darren Randolph.
West Ham, with 37 points, are virtually safe but Sunderland, with only two points from their last eight games, remain nine points short of safety with six games left.
Sunderland manager David Moyes said it had been a missed opportunity to close in on the teams above them.
"We need to win games and today we've got to take three points. It wasn't for the want of trying," he said.
"We'll keep believing we're in with a chance, somewhere along the line hope the football gods will shine on us."
West Ham manager Slaven Bilic said he had been disappointed with the concession of the late equaliser. "We have an unfinished job to do. We have to pick up more points to be safe," he added.
(Reporting by Martyn Herman; Editing by Toby Davis and Ian Chadband)