DB function failed with error number 1064
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 a.state ='1' AND a.publish_up < now() AND (a.publish_down ='0000-00-00:00:00' at line 1 SQL=SELECT a.id as newsid, a.title as newstitle, a.title_alias, a.introtext, a.fulltext, DATE_FORMAT( a.created, '%d-%m-%Y' ) AS date, a.modified,a.publish_up, a.publish_down, a.images,a.urls,a.state,a.sectionid, b.id as catid, b.title as cat_title, b.section FROM sei_content a JOIN sei_categories b ON a.catid = b.id WHERE a.sectionid =1 AND a.content_website_id = AND a.state ='1' AND a.publish_up < now() AND (a.publish_down ='0000-00-00:00:00' OR now() < a.publish_down)AND 1 =1 ORDER BY a.created DESC LIMIT 0, 10 customwardrobes.co.uk News Section