SQL Select failed - please check syntax/table names for select count(*) from game a where a.gametype=0 and a.season=2016 group by a.season