_NOT_QUERY: 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 c.id != 164 ORDER BY RAND() LIMIT 3' at line 1

Query: SELECT c.*, DATE_FORMAT(c.created, '%d %m %y') as created_name FROM reg_content as c WHERE c.published='1' AND c.id_category= AND c.id != 164 ORDER BY RAND() LIMIT 3