Hi guys, I have a query which seems to be slowing down my forum.
The URL is http://www.allaboutthegames.net/forum/index.php and the query that I run to generate the forum index is taking almost a second to run which seems quite slow to me. Is there a more efficient way of querying the same information?
SELECT a.thread_title,a.thread_id, a.thread_stickied, a.thread_locked, MAX(b.reply_date) AS last_post_on,c.category_name,c.category_id,d.user_id AS thread_started_by_id, d.username AS thread_started_by FROM tbl_forum_threads a, tbl_forum_replies b, tbl_forum_categories c, tbl_users d WHERE a.thread_category_id = c.category_id AND a.thread_id = b.thread_id AND a.thread_author = d.user_id GROUP BY a.thread_id ORDER BY a. thread_stickied ASC , last_post_on DESC