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 '' at line 1SELECT E.uid, E.nom, E.date, E.chapeau, CONCAT("uploads/tx_newspol/", E.image) as fullimage, max(A.date) as majDate, count(A.uid) as nbItem FROM tx_newspol_gdEvents E LEFT JOIN tx_newspol_item A ON (E.uid = A.gdevent) WHERE E.uid = ###Duid### AND E.hidden=0 AND E.deleted = 0 AND A.hidden=0 AND A.deleted=0 GROUP BY E.uid ORDER BY A.sorting, A.date LIMIT 0,1
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 '' at line 1SELECT A.uid as Auid, A.titre, A.sstitre, CONCAT(A.chapeau,' ',A.texte) as fullContent, A.date, CONCAT("uploads/tx_newspol/", A.image) as fullimage, T.nom as theme, T.uid as Tuid FROM tx_newspol_item A JOIN tx_hpoindexbdd_coursetype T ON (A.id_cat = T.uid) JOIN tx_hpoindexbdd_coursetype_pages_mm MM ON (T.uid = MM.uid_local AND MM.uid_foreign=68) WHERE A.gdevent = ###Duid### AND A.hidden=0 AND A.deleted = 0 AND T.hidden=0 AND T.deleted=0 GROUP BY ORDER BY A.sorting, A.date DESC LIMIT 0,15