I tried to find in the internet how to use IF inside SQL command in PHP, but I could find a good tutorial.
So I want to make it
SELECT *,(neutral_kills*0.5 + rival_kills)/deaths AS totalkdr
FROM sc_players
ORDER BY totalkdr DESC
LIMIT 0,10
But I want to put IF (deaths == 0){deaths + 1}
How can I do it?