heren      vrouwen      jeugd-elite      jeugd-prov/reg
Error in select article.*, IFNULL(article.enddate, IFNULL(article.messageshowdate, article.messagedate)) as orderdate from news_articles article inner join news_article_views views on views.message_id = article.article_id inner join news_types type on article.type_id = type.type_id where views.site_id = AND type.type_id IN (1,2,8,9,10,3) and hotnews = 'Y' and IFNULL(article.messageshowdate, article.messagedate) < '2016-07-27 21:06' order by orderdate DESC limit 4 : 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 type.type_id IN (1,2,8,9,10,3) and hotnews = 'Y' a' at line 7