select distinct id_pag from pagine where condizione