i have table like this

```

message_id | sender_id | recipient_id | message
6            677         681            message 0
7            677         678            message 1
9            677         678            message 2
10           677         681            message 3
11           677         698            message 4
12           678         677            message 5

```

i want to group sender\_id and recipient\_id unique between them with only one parameter. For example i want to select rows which relevant with user\_id 677 table like this;

```

message_id | sender_id | recipient_id | message
10           677         681            message 3
11           677         698            message 4
12           678         677            message 5

```

I have been working on it for hours and I did not get the desired results.