SELECT a.id, a.title, a.visibility, i.filename FROM `uncut_article` AS a, `uncut_image` AS i WHERE a.image = i.id AND `visible` = 1 AND `pub_date` <= CURDATE() AND ((`unpub_date`='0000-00-00') OR (`unpub_date`>CURDATE())) AND a.group_id = ORDER BY `pub_date` DESC
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 'ORDER BY `pub_date` DESC' at line 1