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