Invalid query : select sum(gsPassYards) as PassYards, sum(gsRushYards) as RushYards, sum(gsPassYards)+sum(gsRushYards) as TotalYards , tID, city, tname, dod from tecmoplayer, game_stats, tecmoteam where pID = gspUID AND tID = gsTeam AND gsSeason = AND gslUID = 1 AND gPlayoff = 0 group by tID, gsSeason order by PassYards desc, TotalYards desc