I have three MySQL columns, Name, Goals, Assists (G and A respectively). I want to calculate points by adding Goals and Assists together, and then sort Names by points.
What I tried was;
$SQL="SELECT * FROM stats WHERE Points=G+A ORDER BY Points";
This didn't work, does anyone have any suggestions on basic addition in MySQL using integers from separate columns?