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 4
SELECT * FROM content_publications_titles t, menu_items i WHERE
i.itemID = t.publicationsID AND i.componentID = 'publications' AND i.itemStatus = 1
AND t.titleStatus = 1 AND t.titleDate <= CURDATE() ORDER BY titleDate
DESC LIMIT