1064
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 'AND t.id = 189 ORDER BY extern ASC, name ASC' at line 1
SELECT t.*, tt.name as team_typename FROM skvlinz_teams t LEFT JOIN skvlinz_team_types tt ON tt.id = t.team_type WHERE t.season_id = AND t.id = 189 ORDER BY extern ASC, name ASC