Jump to content

duplicate results


Jaynesh

Recommended Posts

Hello

 

I am getting duplicate results using my query. I have identified my problem (in red) but I'm not sure how to fix it. I want either one or the other. not both.

 

"SELECT DISTINCT *

FROM dbPosts

JOIN dbUsers

ON dbPosts.username_id = dbUsers.id

JOIN dbFriends

ON (dbPosts.username_id = dbFriends.user_id)

OR

(dbPosts.username_id = dbFriends.friend_id)

Link to comment
https://forums.phpfreaks.com/topic/241706-duplicate-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.