ARP
01-14-2012, 03:06 PM
I'm confused due to this query, It's showing the results repeated 3 times
SELECT post.postid, post.dateline, post.threadid, post.userid, post.username, thread.title, thread.firstpostid, thread.postuserid, thread.forumid
FROM post AS post
JOIN thread AS thread ON ( thread.postuserid = post.userid )
WHERE post.userid =1
AND thread.visible =1
AND post.visible =1
AND thread.open =1
ORDER BY post.dateline DESC
LIMIT 0 , 200
If you tried it from your phpmyadmin you will see the same postid with different titles and with different firstpostid
So where is the problem ?
SELECT post.postid, post.dateline, post.threadid, post.userid, post.username, thread.title, thread.firstpostid, thread.postuserid, thread.forumid
FROM post AS post
JOIN thread AS thread ON ( thread.postuserid = post.userid )
WHERE post.userid =1
AND thread.visible =1
AND post.visible =1
AND thread.open =1
ORDER BY post.dateline DESC
LIMIT 0 , 200
If you tried it from your phpmyadmin you will see the same postid with different titles and with different firstpostid
So where is the problem ?