I tried to publish a website and the problem is occurring below:
Error 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.created_by = 0) AND (cc.id = 11) AND f.content_id IS NULL AND a.access <' at line 6 SQL=SELECT a.*,r.rating_count,r.rating_sum,cc.params AS catparams,cc.title AS cattle,cc.alias AS category_alias FROM afw_content AS a INNER JOIN afw_categories AS cc ON cc.id = a.catid LEFT JOIN afw_content_rating AS r ON r.content_id = a.id LEFT JOIN afw_content_frontpage AS f ON f.content_id = a.id WHERE cc.published = 1 AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2014-08-06 20:41:15' ) AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2014-08-06 20:41:15' ) AND AND (a.created_by = 0) AND (cc.id = 11) AND f.content_id IS NULL AND a.access <= 1 AND cc.access <= 1 AND a.state = 1 ORDER BY a.created DESC LIMIT 0, 1