Invalid query : select gsTeam, pUID, first, last, face, race, sum(gsKRYards)+sum(gsPRYards) as STYards, ptttID, pNumber, pInjured, dod, gsUser from player_atts, tecmoplayer, game_stats where pUID = pID AND pUID = gspUID AND plUID = 0 AND gslUID = plUID AND gsSeason = AND ptttID = gsTeam AND psUID = gsSeason AND gsWeek <= 16 group by gspUID, gsTeam having sum(gsKRAttempts) > 0 order by STYards desc limit 3