Prova con
select * from tabella where id_utente<>id_connesso