Invalid SQL: (SELECT a.art_id AS art_id, a.art_verticalimg AS art_verticalimg, a.art_type AS art_type, ad.art_shorttitle AS art_shorttitle, ad.art_seo AS art_seo, ad.art_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, a.publish_startdate AS publish_date FROM ellemy_articles AS a LEFT JOIN ellemy_articledesc AS ad ON ad.art_id = a.art_id LEFT JOIN ellemy_sections AS s ON s.sec_id = a.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = a.cat_id WHERE a.art_id NOT IN() AND s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND a.publish_status = 1) UNION (SELECT g.gl_id AS art_id, g.gl_coverimg AS art_verticalimg, g.gl_type AS art_type, gd.gl_title AS art_shorttitle, gd.gl_seo AS art_seo, gd.gl_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, g.publish_startdate AS publish_date FROM ellemy_gallery AS g LEFT JOIN ellemy_gallerydesc AS gd ON gd.gl_id = g.gl_id LEFT JOIN ellemy_sections AS s ON s.sec_id = g.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = g.cat_id WHERE s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND g.publish_status = 1) ORDER BY RAND(), publish_date DESC MySQL 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 s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('' at line 6
Error file: /home/ellemy/public_html/core/libs/classes/db.class.php
Error line: 452
Invalid SQL: (SELECT a.art_id AS art_id, a.art_verticalimg AS art_verticalimg, a.art_type AS art_type, ad.art_shorttitle AS art_shorttitle, ad.art_seo AS art_seo, ad.art_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, a.publish_startdate AS publish_date FROM ellemy_articles AS a LEFT JOIN ellemy_articledesc AS ad ON ad.art_id = a.art_id LEFT JOIN ellemy_sections AS s ON s.sec_id = a.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = a.cat_id WHERE a.art_id NOT IN() AND s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND a.publish_status = 1) UNION (SELECT g.gl_id AS art_id, g.gl_coverimg AS art_verticalimg, g.gl_type AS art_type, gd.gl_title AS art_shorttitle, gd.gl_seo AS art_seo, gd.gl_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, g.publish_startdate AS publish_date FROM ellemy_gallery AS g LEFT JOIN ellemy_gallerydesc AS gd ON gd.gl_id = g.gl_id LEFT JOIN ellemy_sections AS s ON s.sec_id = g.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = g.cat_id WHERE s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND g.publish_status = 1) ORDER BY RAND(), publish_date DESC LIMIT 0, 4 MySQL 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 s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('' at line 6
Error file: /home/ellemy/public_html/core/libs/classes/db.class.php
Error line: 452
Invalid SQL: (SELECT a.art_id AS art_id, a.art_verticalimg AS art_verticalimg, a.art_type AS art_type, ad.art_shorttitle AS art_shorttitle, ad.art_seo AS art_seo, ad.art_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, a.publish_startdate AS publish_date FROM ellemy_articles AS a LEFT JOIN ellemy_articledesc AS ad ON ad.art_id = a.art_id LEFT JOIN ellemy_sections AS s ON s.sec_id = a.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = a.cat_id WHERE a.art_id NOT IN() AND s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND a.publish_status = 1) UNION (SELECT g.gl_id AS art_id, g.gl_coverimg AS art_verticalimg, g.gl_type AS art_type, gd.gl_title AS art_shorttitle, gd.gl_seo AS art_seo, gd.gl_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, g.publish_startdate AS publish_date FROM ellemy_gallery AS g LEFT JOIN ellemy_gallerydesc AS gd ON gd.gl_id = g.gl_id LEFT JOIN ellemy_sections AS s ON s.sec_id = g.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = g.cat_id WHERE s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND g.publish_status = 1) ORDER BY RAND(), publish_date DESC MySQL 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 s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('' at line 6
Error file: /home/ellemy/public_html/core/libs/classes/db.class.php
Error line: 452
Invalid SQL: (SELECT a.art_id AS art_id, a.art_verticalimg AS art_verticalimg, a.art_type AS art_type, ad.art_shorttitle AS art_shorttitle, ad.art_seo AS art_seo, ad.art_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, a.publish_startdate AS publish_date FROM ellemy_articles AS a LEFT JOIN ellemy_articledesc AS ad ON ad.art_id = a.art_id LEFT JOIN ellemy_sections AS s ON s.sec_id = a.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = a.cat_id WHERE a.art_id NOT IN() AND s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(a.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND a.publish_status = 1) UNION (SELECT g.gl_id AS art_id, g.gl_coverimg AS art_verticalimg, g.gl_type AS art_type, gd.gl_title AS art_shorttitle, gd.gl_seo AS art_seo, gd.gl_standfirst AS art_standfirst, s.sec_initial AS sec_initial, c.cat_initial AS cat_initial, g.publish_startdate AS publish_date FROM ellemy_gallery AS g LEFT JOIN ellemy_gallerydesc AS gd ON gd.gl_id = g.gl_id LEFT JOIN ellemy_sections AS s ON s.sec_id = g.sec_id LEFT JOIN ellemy_categories AS c ON c.cat_id = g.cat_id WHERE s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('') AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) <= '2017-09-24' AND DATE_FORMAT(g.publish_startdate, '%Y-%m-%d' ) >= CURDATE() - INTERVAL 14 DAY AND g.publish_status = 1) ORDER BY RAND(), publish_date DESC LIMIT 0, 4 MySQL 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 s.sec_id NOT IN('4','7','8','12','14') AND s.sec_initial NOT IN('' at line 6
Error file: /home/ellemy/public_html/core/libs/classes/db.class.php
Error line: 452