ERROR: FAILED QUERY: SELECT TEAMS2COMPETITION.team_id, ASSOCIATION.association_name , ASSOCIATION.logoname_klein, ASSOCIATION.id AS ASSOCIATION_id, TEAMS.id AS TEAMS_id FROM TEAMS2COMPETITION, ASSOCIATION, TEAMS WHERE TEAMS2COMPETITION.competition_id = AND TEAMS2COMPETITION.team_id = TEAMS.id AND ASSOCIATION.id = TEAMS.association_id group by ASSOCIATION.association_name order by ASSOCIATION.logoname_klein DESC LIMIT 0 , 50 :

error: 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 TEAMS2COMPETITION.team_id = TEAMS.id AND ASSOCIATION.id = TEAMS.association' at line 9