MySQL Query fail: SELECT concat('/images/',logos.file) as opposition_url, G.id as id, T.name as team_name, G.opposition as opposition_name, G.home as home, G.score_team as score_team, G.score_opposition as score_opposition, G.date as date, G.time as time, G.competition as competition, G.report as report, G.album_id as album_id, G.attendance as attendance, G.referee as referee, G.stadium as stadium, G.sponsor as match_sponsor, G.sponsor_link as match_sponsor_link, G.sponsor_logo as match_sponsor_logo
FROM games as G LEFT JOIN teams as T ON G.team_id = T.id LEFT JOIN logos ON logos.id = G.logo_id WHERE G.id = events