How do I resolve this situation?
$q = mysql_query("SELECT *, COUNT(*) as total,
SUM(bolas_agarradas+bolas_espalmadas) as defesas,
SUM(bolas_agarradas+bolas_espalmadas+gols_sofridos) as chances,
SUM(defesas / chances) as porcentual ...
Use the values added in the "AS" in the same query