得点ランキング

Database Error
File : /home/futsal-times-com/public_html/league/Jr/osaka_kita/cup/goal.inc
Line : 30
Message : SELECT * FROM `goal_ranking` WHERE league = and year = 2017 ORDER BY id
DB Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and year = 2017 ORDER BY id' at line 1