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 '' at line 1

Debugging info:

#0  qq(SELECT * FROM comp_special cs, comp_codes c where c.comp_code=cs.comp_code and cs.comp_id=) called at [/home/rugbylea/rugbyleagueproject/models/functions.php:64]
#1  q(SELECT * FROM comp_special cs, comp_codes c where c.comp_code=cs.comp_code and cs.comp_id=) called at [/home/rugbylea/rugbyleagueproject/handlers/matches.php:224]
#2  include(/home/rugbylea/rugbyleagueproject/handlers/matches.php) called at [/home/rugbylea/rugbyleagueproject/entry.php:199]
#3  require(/home/rugbylea/rugbyleagueproject/entry.php) called at [/home/rugbylea/rugbyleagueproject/public_html/www/matches:3]