Aid with SQL SUM()?

I am not sure if I am supposed to use SUM() for this, but I wanted to get the sum of all the values in the “earnedcoins” column and this is my code: $sql = “SELECT SUM(earnedcoins) FROM users”; $…