$query = "select * from utente ...............";
.......................
....................

while ($a_row = mysql_fetch_array($result))
{


$dati=mysql_query("select * from sottocategorie WHERE id_sottocat IN ($a_row[id_sottocat]) ");
...................
...................

}

Comunque io aggiungerei una tabella per mettere in relazione utenti e sottocategorie: tabella[ Utente , Categoria ].