Invalid query : select pID, first, last, sum(gsPunts) as Punts, sum(gsPuntYards) as PuntYds, sum(gsPuntYards)/sum(gsPunts) as PuntAvg , tID, city, tname, dod from tecmoplayer, game_stats, tecmoteam where pID = gspUID AND tID = gsTeam AND gsSeason = AND gslUID = 1 AND gPlayoff = 0 AND pos = 9 AND gsPunts > 0 group by pID, gsSeason order by PuntAvg desc