ERROR: FAILED QUERY: SELECT AS liga_id,, COMPETITION.parent_id , year_id AS YEAR_id, YEAR.year_desc AS YEAR_desc, COMPETITION.status AS COMPETITION_status, COMPETITION.mannschaftsart_id AS MANNSCHAFTSART_id, AS MANNSCHAFTSART_name, COMPETITION.number_of_teams, COMPETITION.number_of_climbers, COMPETITION.number_of_relegated_teams, COMPETITION.number_of_play_off_teams, DATE_FORMAT(, '%d.%m.%Y') as date FROM COMPETITION, YEAR, MANNSCHAFTSART WHERE = AND = COMPETITION.year_id AND = COMPETITION.mannschaftsart_id LIMIT 0 , 1 :

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 = COMPETITION.year_id AND = COMPETITION.mannscha' at line 17