Dias d'Ávila-BA

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 'Ávila%' AND uf = 'ba' ORDER BY RAND(20072026) LIMIT 0,24' at line 1

SELECT * FROM tb_locais WHERE situacao = 'ACEITO' AND cidade LIKE '%Dias d'Ávila%' AND uf = 'ba' ORDER BY RAND(20072026) LIMIT 0,24