Mo Salah scored his 29th Premier League goal of the season as Liverpool came from behind to grind out a win against Palace.