I have two tables:
feed:
- id
- user_id
- content
friends:
- id
- user_id
- user2_id
Say (for example) that friends contains the following data:
0, 1, 4
1, 1, 6
2, 1, 12
3, 6, 1
3, 4, 1
3, 1, 15
3, 12, 6
feed contains the following data:
0, 1, 'Lorem Ipsum'
1, 2...