Erro na consulta: SELECT a.id, a.nome, a.empresa, a.email, 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 a.id = anun.id_anunciante and anun.publicado = 1 AND anun.deletado = 0 AND anun.data_expiracao >= CURDATE() AND anun.id_anuncio_categoria in (121,122,123,124,125) GROUP BY a.id 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