Jaxel
Well-known member
Did you make any changes to 'XenForo_Model_Thread'? Perhaps from a mod by Ragtek?Attached file didn't work either.
Code:SELECT thread.* , user.*, IF(user.username IS NULL, thread.username, user.username) AS username, node.title AS node_title, GREATEST(COALESCE(thread_read.thread_read_date, 0), COALESCE(forum_read.forum_read_date, 0), 1297760623) AS thread_read_date, IF(thread_watch.user_id IS NULL, 0, 1) AS thread_is_watched, IF(thread_user_post.user_id IS NULL, 0, thread_user_post.post_count) AS user_post_count, permission.cache_value AS node_permission_cache FROM xf_thread AS thread LEFT JOIN xf_user AS user ON (user.user_id = thread.user_id) INNER JOIN xf_node AS node ON (node.node_id = thread.node_id) LEFT JOIN xf_thread_read AS thread_read ON (thread_read.thread_id = thread.thread_id AND thread_read.user_id = 4) LEFT JOIN xf_forum_read AS forum_read ON (forum_read.node_id = thread.node_id AND forum_read.user_id = 4) LEFT JOIN xf_thread_watch AS thread_watch ON (thread_watch.thread_id = thread.thread_id AND thread_watch.user_id = 4) LEFT JOIN xf_thread_user_post AS thread_user_post ON (thread_user_post.thread_id = thread.thread_id AND thread_user_post.user_id = 4) LEFT JOIN xf_permission_cache_content AS permission ON (permission.permission_combination_id = 88 AND permission.content_type = 'node' AND permission.content_id = thread.node_id) WHERE ((thread.discussion_state IN ('visible'))) AND (thread.node_id IN ('11,12,13,14,20,36,32,33,34,25,26,27,24,5,6,7,16,17,29,30')) AND thread.node_id IN ('11', '12', '13', '14', '20', '36', '32', '33', '34', '25', '26', '27', '24', '5', '6', '7', '16', '17', '29', '30') ORDER BY thread.last_post_date DESC LIMIT 5
My mods are designed to be used with ZERO core file edits.