Error in SQL: SELECT a.articleHeadline, a.articleLabel, at1.articleID, COUNT(at1.tagID) AS tag_count FROM articles AS a INNER JOIN articleTags AS at1 ON at1.articleID = a.articleID WHERE at1.tagID IN () AND a.articlePublishDT < '2014-07-24 10:43:37' AND a.articleIsHidden = 0 GROUP BY at1.articleID, a.articleHeadline, a.articleLabel ORDER BY COUNT(at1.tagID) DESC, a.articlePublishDT DESC LIMIT 10[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.articlePublishDT < '2014-07-24 10:43:37' AND a.articleIsHidden = 0 GROUP' at line 1]