Query:
MYSQL error: Error executing query
1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY c.comp_group_id ASC,replace(replace(replace(c.comp_type,'series','...' at line 1

Debugging info:

#0  qq(SELECT DISTINCT c.comp_id,c.comp_group_id,cg.game_id,cg.game_round,c.comp_type FROM comp_games cg,comps c WHERE c.comp_id=cg.comp_id and cg.game_id IN () ORDER BY c.comp_group_id ASC,replace(replace(replace(c.comp_type,'series','zzz'),'season','aaa'),'league','aab') ASC) called at [/home/rugbylea/rugbyleagueproject/models/functions.php:64]
#1  q(SELECT DISTINCT c.comp_id,c.comp_group_id,cg.game_id,cg.game_round,c.comp_type FROM comp_games cg,comps c WHERE c.comp_id=cg.comp_id and cg.game_id IN () ORDER BY c.comp_group_id ASC,replace(replace(replace(c.comp_type,'series','zzz'),'season','aaa'),'league','aab') ASC) called at [/home/rugbylea/rugbyleagueproject/controllers/calendar.php:87]
#2  include(/home/rugbylea/rugbyleagueproject/controllers/calendar.php) called at [/home/rugbylea/rugbyleagueproject/handlers/calendar.php:29]
#3  include(/home/rugbylea/rugbyleagueproject/handlers/calendar.php) called at [/home/rugbylea/rugbyleagueproject/entry.php:199]
#4  require(/home/rugbylea/rugbyleagueproject/entry.php) called at [/home/rugbylea/rugbyleagueproject/public_html/www/calendar:3]