Prepare-se

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 ') AND r.inc_portifolio_id <> '' GROUP BY p.id ORDER BY RAND() LIMIT 0,3' at line 1 in SELECT p.* FROM inc_portifolio p INNER JOIN inc_portifolio_inc_portifolio_category r ON p.id = r.inc_portifolio_id WHERE r.inc_portifolio_category_id IN () AND r.inc_portifolio_id <> '' GROUP BY p.id ORDER BY RAND() LIMIT 0,3