Database Error

A database error occurred while performing the requested procedure. Please review the database error below for more information.

system/libraries/drivers/Database/Mysqli.php [156]:

There was an SQL 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 a.SEASON_ID= and a.DIVISION_ID= order by c.JERSEY_NUMBER,b.LAST_NAME,b.FIRST' at line 1 - select a.LEAGUE_ID,a.SEASON_ID,a.DIVISION_ID,a.TEAM_ID,a.GAME_SCHEDULE_ID,a.PLAYER_ID,b.FIRST_NAME,b.LAST_NAME,c.JERSEY_NUMBER,a.POSITION,c.CAPTAIN_FLAG,c.ASSISTANT_FLAG,a.SUBSTITUTE_FLAG,c.STATUS,a.ADDED_BY,a.ADDED_ON,a.UPDATED_BY,a.UPDATED_ON from HK_GAME_ROSTER a,HK_PLAYER b,HK_ROSTER c where b.PLAYER_ID = a.PLAYER_ID and c.LEAGUE_ID = a.LEAGUE_ID and c.SEASON_ID = a.SEASON_ID and c.DIVISION_ID = a.DIVISION_ID and c.TEAM_ID = a.TEAM_ID and c.PLAYER_ID = a.PLAYER_ID and a.GAME_SCHEDULE_ID=30638 and a.LEAGUE_ID= and a.SEASON_ID= and a.DIVISION_ID= order by c.JERSEY_NUMBER,b.LAST_NAME,b.FIRST_NAME

Loaded in {execution_time} seconds, using {memory_usage} of memory. Generated by Kohana v{kohana_version}.