This is my current query:
SELECT DISTINCT t.* FROM filter AS f
INNER JOIN filter_thread AS ft
ON ft.filter_id = f.filter_id
INNER JOIN thread AS t
ON ft.thread_id = t.thread_id
WHERE f.tag LIKE '%test%'
ORDER BY t.replystamp DESC
It returns a bunch of data including a “owner_id” column.
The ‘user_table’ contains a matching id, labeled, ‘id’
I previously used this query to get the data:
SELECT username FROM users WHERE id='$user_id'"
I need these to occur in the same query! But adding an additional INNER JOIN is not working.
perhaps this:
Just a guess.