Query Error SELECT *
FROM fs_project WHERE published = 1 and category_id_wrapper like "%,1,%" and cost = ORDER BY RAND() LIMIT 12
Array
(
[0] => 42000
[1] => 1064
[2] => 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 12' at line 2
)