Query:
MYSQL error: Error executing query
1054: Unknown column 'g.game_id' in 'where clause'

Debugging info:

#0  qq(select distinct a.player_id from appearance_links a where g.game_id=cg.game_id and cg.comp_id in (1955)) called at [/home/rugbylea/rugbyleagueproject/models/functions.php:64]
#1  q(select distinct a.player_id from appearance_links a where g.game_id=cg.game_id and cg.comp_id in (1955)) called at [/home/rugbylea/rugbyleagueproject/controllers/team_season.php:79]
#2  include(/home/rugbylea/rugbyleagueproject/controllers/team_season.php) called at [/home/rugbylea/rugbyleagueproject/controllers/summary_tour.php:134]
#3  include(/home/rugbylea/rugbyleagueproject/controllers/summary_tour.php) called at [/home/rugbylea/rugbyleagueproject/handlers/tours.php:173]
#4  include(/home/rugbylea/rugbyleagueproject/handlers/tours.php) called at [/home/rugbylea/rugbyleagueproject/entry.php:199]
#5  require(/home/rugbylea/rugbyleagueproject/entry.php) called at [/home/rugbylea/rugbyleagueproject/public_html/www/tours:3]