Empresas e Locais

Erro!

# 1064 - 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 'Anta%' AND uf = 'rn' ORDER BY RAND(12052024) LIMIT 0,24' at line 1

SELECT * FROM tb_locais WHERE situacao = 'ACEITO' AND termino >= '2024-05-12' AND cidade LIKE '%Lagoa d'Anta%' AND uf = 'rn' ORDER BY RAND(12052024) LIMIT 0,24