For a social web application I needed to create a MySQL table in following way,
id | user_id | friend_id
------------------------
0 | 5 | 6
1 | 6 | 5
user 5 and another user 6 are now friends. How can I get a list of friends for a particular user. Could somebody point me in to the right direction please?