SELECT a.slug, a.codigo FROM anuncios AS a WHERE a.slug_antigo='predio-comercial-de-244740m-com-excelente-localizacao' AND a.exibir=1 ORDER BY a.id ASC LIMIT 1