SELECT `config` FROM `whg_plugin` WHERE `name` = 'TcSwitchTheme' LIMIT 1 [ RunTime:0.002439s ]
SELECT * FROM `whg_portal_category` WHERE `id` = 8 AND `status` = 1 LIMIT 1 [ RunTime:0.013267s ]
SELECT * FROM `whg_portal_category` WHERE `id` = 6 AND `status` = 1 LIMIT 1 [ RunTime:0.001979s ]
SELECT * FROM `whg_portal_category` WHERE `delete_time` = 0 [ RunTime:0.002203s ]
SELECT COUNT(*) AS think_count FROM ( SELECT count(*) AS think_count FROM `whg_portal_post` `post` INNER JOIN `whg_portal_category_post` `category_post` ON `post`.`id`=`category_post`.`post_id` WHERE `post`.`post_status` = '1' AND `post`.`post_type` = '1' AND `post`.`delete_time` = '0' AND ( `delete_time` = 0 AND `post`.`create_time` >= '0' ) AND ( `category_post`.`category_id` = '8' ) AND ( `post`.`published_time` > '0' AND `post`.`published_time` < '1739518230' ) GROUP BY `post`.`id` ) `_group_count_` LIMIT 1 [ RunTime:0.014720s ]
SELECT post.*,min(category_post.category_id) as category_id FROM `whg_portal_post` `post` INNER JOIN `whg_portal_category_post` `category_post` ON `post`.`id`=`category_post`.`post_id` WHERE `post`.`post_status` = '1' AND `post`.`post_type` = '1' AND `post`.`delete_time` = '0' AND ( `delete_time` = 0 AND `post`.`create_time` >= '0' ) AND ( `category_post`.`category_id` = '8' ) AND ( `post`.`published_time` > '0' AND `post`.`published_time` < '1739518230' ) GROUP BY `post`.`id` ORDER BY `post`.`is_top` DESC,`post`.`published_time` DESC LIMIT 0,8 [ RunTime:0.005694s ]