I have a table like this (say, friends):
|_name1_|_name2_|
| james | sarah |
| bob | james |
| james | dave |
I want all james' friends. It will need to include 'bob' as well but I can not figure out what the query will need to be like sine james is on both fields. Thanks.