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 forum_id = 0 ORDER BY id DESC LIMIT 0, 1' at line 1 SELECT * FROM forum_affiche WHERE cate_id = AND forum_id = 0 ORDER BY id DESC LIMIT 0, 1
[error string missing]
SELECT f.*,(SELECT GROUP_CONCAT(c.title,'~',c.link) FROM forum_forums AS c WHERE c.parent_id = f.id) AS childs FROM forum_forums AS f WHERE f.category_id = AND f.parent_id = 0 AND f.is_show = 1 ORDER BY f.ordernumber ASC, f.id ASC