Error in executing SELECT Blog_Data.*, (SELECT group_concat(Blog_Categories_Link.CategoryId) FROM Blog_Categories_Link WHERE Blog_Data.IntRef = Blog_Categories_Link.BlogId) AS Categories FROM Blog_Data LEFT JOIN Blog_Categories_Link ON Blog_Categories_Link.BlogId = Blog_Data.IntRef WHERE Blog_Data.Viewable = '1' AND Blog_Data.IntRef != '666' AND Blog_Categories_Link.CategoryId IN () ORDER BY RAND() LIMIT 4 stmt
error:1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY RAND() LIMIT 4' at line 1