SQL/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 'order by gender DESC, team_season.name' at line 1 . SELECT *, team_season.id as team_season_id, team_season.name as team_season_name FROM teams INNER JOIN team_season ON team_season.team_id = teams.team_id WHERE team_season.reg_event_id= order by gender DESC, team_season.name]

SQL/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 'or `home_id` = ) and `season_id`= and `do_not_include_in_record` = 2
and statu' at line 2 .
SELECT home_id,visit_id,result_home_score,result_visit_score,exempt_home_team,exempt_visit_team FROM `event_mgr`
WHERE (`visit_id` = or `home_id` = ) and `season_id`= and `do_not_include_in_record` = 2
and status = 1 and end_time < UNIX_TIMESTAMP(now())]

SQL/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 'or `home_id` = ) and `season_id`= and `do_not_include_in_record` = 0
and stat' at line 2 .
SELECT home_id,visit_id,result_home_score,result_visit_score FROM `event_mgr`
WHERE (`visit_id` = or `home_id` = ) and `season_id`= and `do_not_include_in_record` = 0
and status = 1 and end_time < UNIX_TIMESTAMP(now())]

SQL/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 'GROUP BY event_mgrID ORDER BY start_time ASC)ez_results' at line 1 . SELECT count(*) FROM (SELECT event_mgrID AS id , event_mgr.league_id, event_mgr.home_id, event_mgr.visit_id, event_mgr.location_id, event_mgr.start_time, event_mgr.end_time, event_mgr.event_type_id, event_mgr.result_home_score, event_mgr.result_visit_score, event_mgr.event_desc, 'team1' as team1, 'team2' as team2, home_team_name, visit_team_name, event_mgr.home_season_id, event_mgr.visit_season_id FROM division, event_mgr WHERE (event_type_id = 1 OR end_time > 1548020219) AND (event_mgr.home_season_id = '5367' OR event_mgr.visit_season_id = '5367') AND event_mgr.status = '1' AND season_id = GROUP BY event_mgrID ORDER BY start_time ASC)ez_results]

SQL/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 'GROUP BY event_mgrID ORDER BY start_time ASC LIMIT 0,999999' at line 1 . SELECT event_mgrID AS id , event_mgr.league_id, event_mgr.home_id, event_mgr.visit_id, event_mgr.location_id, event_mgr.start_time, event_mgr.end_time, event_mgr.event_type_id, event_mgr.result_home_score, event_mgr.result_visit_score, event_mgr.event_desc, 'team1' as team1, 'team2' as team2, home_team_name, visit_team_name, event_mgr.home_season_id, event_mgr.visit_season_id FROM division, event_mgr WHERE (event_type_id = 1 OR end_time > 1548020219) AND (event_mgr.home_season_id = '5367' OR event_mgr.visit_season_id = '5367') AND event_mgr.status = '1' AND season_id = GROUP BY event_mgrID ORDER BY start_time ASC LIMIT 0,999999]

SQL/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 ')ez_results' at line 1 . SELECT count(*) FROM (SELECT coach.title, coach.name, coach.contact_information FROM coach WHERE coach.team_id = '' AND coach.reg_events_id = )ez_results]

SQL/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 'LIMIT 0,999999' at line 1 . SELECT coach.title, coach.name, coach.contact_information FROM coach WHERE coach.team_id = '' AND coach.reg_events_id = LIMIT 0,999999]

SQL/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 'ORDER BY player.number)ez_results' at line 2 . SELECT count(*) FROM (SELECT player.id, player.first_name, player.last_name, player.year, player.type, IF(player.hometown = '','N/A',player.hometown), player.goals, player.assists, player.points, player.number,player.games_played,player.penalty_minutes FROM player
WHERE player.type!='Goalie' AND player.team_id = '' AND player.reg_events_id = ORDER BY player.number)ez_results]

SQL/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 'ORDER BY player.number LIMIT 0,999999' at line 2 . SELECT player.id, player.first_name, player.last_name, player.year, player.type, IF(player.hometown = '','N/A',player.hometown), player.goals, player.assists, player.points, player.number,player.games_played,player.penalty_minutes FROM player
WHERE player.type!='Goalie' AND player.team_id = '' AND player.reg_events_id = ORDER BY player.number LIMIT 0,999999]

SQL/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 'ORDER BY player.number)ez_results' at line 3 . SELECT count(*) FROM (SELECT player.id, player.first_name, player.last_name, player.year, player.type, IF(player.hometown = '','N/A',player.hometown), player.games_played, player.periods, player.minutes, player.goals_against,
player.goals_against_average, player.shots, player.saves, player.save_percentage, player.shutout, player.number, player.assists FROM player
WHERE player.type='Goalie' AND player.team_id = '' AND player.reg_events_id = ORDER BY player.number)ez_results]

SQL/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 'ORDER BY player.number LIMIT 0,999999' at line 3 . SELECT player.id, player.first_name, player.last_name, player.year, player.type, IF(player.hometown = '','N/A',player.hometown), player.games_played, player.periods, player.minutes, player.goals_against,
player.goals_against_average, player.shots, player.saves, player.save_percentage, player.shutout, player.number, player.assists FROM player
WHERE player.type='Goalie' AND player.team_id = '' AND player.reg_events_id = ORDER BY player.number LIMIT 0,999999]