Salut,

j essaye de faire un count avec une requete utilisant une jointure

en gros j ai deux tables: participants et parrainage, qui ont un point common , c est l email du parrain qui est dans la table participants et parrainage.

Je dois trouver combien un participant a de filleul et donc count me semblait pas mal mais voila j ai celle erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
#1305 - FUNCTION db.COUNT does not exist
voici la requete en question :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
SELECT participants.*, COUNT (parrainage.id) AS count_filleul FROM participants 
INNER JOIN parrainage ON participants.email = parrainage.parrain_email 
ORDER BY participants.id ASC;
quelqu un peut il m aider sur mon erreur

Merci d avance