Erro ao executar comando SQL: SELECT SQL_CALC_FOUND_ROWS distinct(imovel.id) FROM imovel INNER JOIN local ON local.id = imovel.local INNER JOIN regiao ON regiao.id = local.regiao WHERE 1=1 AND operacao IN ('1','3') AND regiao.id IN ('1') AND ((flag_venda_pag_destaque = 1) OR (flag_venda_destaque = 1)) AND flag_ativo = 1 ORDER BY rand() LIMIT 1MySQL server has gone away