Erreur SQL ! SELECT DISTINCT (idbuteur), P.idclub FROM perf P, rencontre R, csw_club CC WHERE R.idclub=2647 and P.idclub=2647 AND R.idsaison= and CC.idclub=P.idclub and R.idrencontre = P.idrencontre 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 CC.idclub=P.idclub and R.idrencontre = P.idrencontre' at li