Could not execute leagues count. select count(*) from leagues where season = 2001 and federation = and status = 'ik' and category is not null , You have an error in your SQL syntax near 'and status = 'ik' and category is not null ' at line 5