Erro na consulta: SELECT, a.nome, a.empresa,, a.telefone, a.cep, a.cidade, a.bairro, a.endereco, a.numero, a.logo AS imagem, a.origem, a.estado, 10 AS total_anuncio FROM anunciante AS a, anuncio AS anun WHERE a.tipo_pessoa = 'PJ' AND a.origem = 'site-admin' AND = anun.id_anunciante and anun.publicado = 1 AND anun.deletado = 0 AND anun.data_expiracao >= CURDATE() AND anun.id_anuncio_categoria in (132,133,134,135,137,138,139) GROUP BY ORDER BY RAND(), imagem DESC, a.nome.
Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'tudoaquiv2.a.nome' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by