SELECT a.slug, a.codigo FROM anuncios AS a WHERE a.slug_antigo='' AND a.exibir=1 ORDER BY a.id ASC LIMIT 1