You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Oeste') AND (`p`.`UF` LIKE 'SC') ORDER BY rand() LIMIT 6' at line 1
SELECT p.Indicativo,p.nome,p.sobrenome,p.cidade,p.UF,p.foto FROM gre_userperfil p WHERE (`p`.`id`!='4696' AND (`p`.`nome`!='' OR `p`.`sobrenome`!='')) AND (`p`.`cidade` LIKE 'Herval D'Oeste') AND (`p`.`UF` LIKE 'SC') ORDER BY rand() LIMIT 6Volta para o inĂcio