I have 2 tables as below.
Review table
identifier
user_id
overview
title
datetime
PeopleFollows table
identifier
user_id
following_user_id
datetime
I want to run 1 query to get the top 10 results by date. So, for example, if I have the following data:
Review table
1 user1 "This is my review" "title" 2011-01-10 2 user1 "Another review" "title again" 2011-01-08
People follow the table.
1 user2 user1 2011-01-09
I want to get the following results:
Review id=2 People follows id=1 Review id = 1
The only way I can do this is to make separate X-limit queries and then combine them to get the X results.
I may need to explain a little more.
source share