Requête erronée: 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 1' at line 1

SELECT * FROM fonds WHERE est_publie='YES' AND id IN (SELECT fonds_id FROM fonds_a_entites WHERE entites_id=) ORDER BY RAND() LIMIT 1

#1 /home/clients/fe545e2f1078d9997c83a5fe988adc69/sites/ obj->_error()
#2 /home/clients/fe545e2f1078d9997c83a5fe988adc69/sites/ db->execQuery()