Erro de contagem de registros: SELECT COUNT(*) FROM progeral p join categorias c on (p.idcategoria = c.idcategoria) join config_prod cf on (p.idprod = cf.idprod) WHERE p.nome REGEXP 'De' AND p.nome REGEXP 'bra├žo' AND p.nome REGEXP '' AND p.visivel = 'S' ORDER BY RAND(). Mysql informa: Got error 'empty (sub)expression' from regexp