Invalid query : select sum(gsPassYards) as PassYards, sum(gsRushYards) as RushYards, sum(gsPassYards)+sum(gsRushYards) as TotalYards , tID, city, tname 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 TotalYards desc, TotalYards desc