requête SQL :
SELECT a.id,a.titre,a.auteur,a.reponses,a.vues,a.der_aut,
a.der_rep,a.icon,a.closed,b.id_user,b.id_last_msg,
b.date_last,b.participation,b.page FROM sf_topics a LEFT JOIN sf_flags b ON ( a.id=b.id_topic and b.datelast = ( select max(datelast) from sf_flags c where b.id_topic = c.id_topic ) WHERE a.forum_id='1' ORDER BY der_rep DESC LIMIT 0, 30
MySQL a répondu:
You have an error in your SQL syntax near 'select max(datelast) from sf_flags c where b.id_topic = c.id_topic )
WHERE a.fo' at line 1