This is my table data Student
Student
And this is my query --
You don't need use SUM for this operation. Try this query:
SUM
SELECT id, ( maths + chemistry + physics ) AS total, maths, chemistry, physics FROM `student`