bon à froid comme ça :
SELECT nom,description,groupe,COUNT(sujets.id) AS countid,LAST(reponse.auteur) AS lastauteur,LAST(reponse.cree) AS lastcree
FROM forums,permissions,reponses,sujets
GROUP BY nom,description,groupe
WHERE forums.id != '0'
AND forums.id = permissions.id_forum
AND sujets.forum_id = forum.id
AND reponses.id_sujet = sujets.id
AND permissions.login = 'Esox'
remarque : having est l'équivalent de WHERE mais pour les fonction d'aggrégation (HAVING SUM(id) > 10)
utilise AND plutôt que &&
---------------
What if I were smiling and running into your arms? Would you see then what I see now?