Hello All,
I have a Data model in which i have the following tables structure
posts(table)-------->columns(id, ...........)
lists_posts(table)--->columns(post_id, list_id)
lists(table)--------->columns(id, user_id, .....)
users(table)-------->coulmns(id,.......)
I want to get lists from lists table, users from users table and posts from posts table where
lists.user_id = users.id
lists_posts.list_id = lists.id
and lists_posts.id = posts.id
I write the query using Joins and getting for multiple posts duplicated lists and users but i want to get posts in such a way that for each user+list comination there shld be multiple posts in the result.
