Invalid query : select sum(gsAttempts)/16 as Attempts, sum(gsComps)/16 as Comps, sum(gsPassYards)/16 as PassYards, sum(gsPassTDs)/16 as TDs, sum(gsINTs)/16 as INTs, ROUND(((GREATEST(0, LEAST(2.375,((((SUM(gsComps) / SUM(gsAttempts)) * 100) - 30) * .05))) + GREATEST(0, LEAST(2.375,(((SUM(gsPassYards) / SUM(gsAttempts)) - 3) * .25))) + LEAST(2.375, ((SUM(gsPassTDs) / SUM(gsAttempts)) *20)) + GREATEST(0, (2.375 -((SUM(gsINTs) / SUM(gsAttempts)) * 25))))*50/3),1) AS nfl_rating, gsTeam from game_stats where gspUID = AND gsSeason = 2004