where id_richiedente=$id or id_accettante=$id and accettato=1