Query using a sum

Only that it would work without GROUP BY just fine, as long as he wants to get only 1 id
In that case, the solution is:
SELECT sum(gross_price) FROM donations WHERE id = '$id'
otherwise the solution is:
SELECT id, sum(gross_price) FROM donations GROUP BY id