SQL/DB Error

Array
(
    [0] => Array
        (
            [error_str] => 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 mes.Parent_Message_ID=0 AND CONCAT_WS(' ', mes.Name, IF(mes.Seria != '', m' at line 1
            [query] => SELECT mes.PriceSite1, mes.Checked, mes.ItemID, CONCAT(sub.Hidden_URL, mes.Keyword,'.html') AS URL, mes.Parent_Message_ID FROM Message AS mes LEFT JOIN Subdivision AS sub ON sub.Subdivision_ID = mes.Subdivision_ID WHERE mes.ItemID IN () AND mes.Parent_Message_ID=0 AND CONCAT_WS(' ', mes.Name, IF(mes.Seria != '', mes.Seria, NULL), mes.Model) != '' AND mes.Keyword > ''
        )

)


Type: Array
Last Query [44]: SELECT Title, Path FROM Search_Document WHERE Catalogue_ID=36 ORDER BY rand()
Last Rows Returned: 0