AndyB
Well-known member
I'm looking for query to find where two members posted in same thread. So far I have created this query but it does not retrieve any results.
Code:
SELECT xf_thread.thread_id
FROM xf_thread
INNER JOIN xf_post ON xf_post.thread_id = xf_thread.thread_id
WHERE xf_post.user_id='1'
AND xf_post.user_id='2'