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 'INNER JOIN 01_iteam_discipline AS d ON d.id = m.disciplina_id
LEFT JOIN 01_iteam' at line 4You 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 M.state = 1) AS M
LEFT JOIN 01_iteam_atleti AS ORO ON ORO.id = M.id AND M.me' at line 7