SELECT `config` FROM `whg_plugin` WHERE `name` = 'TcSwitchTheme' LIMIT 1 [ RunTime:0.001995s ]
SELECT * FROM `whg_portal_category` WHERE `id` = 4 AND `status` = 1 LIMIT 1 [ RunTime:0.002437s ]
SELECT * FROM `whg_portal_category` WHERE `id` = 3 AND `status` = 1 LIMIT 1 [ RunTime:0.002022s ]
SELECT * FROM `whg_portal_category` WHERE `delete_time` = 0 [ RunTime:0.002616s ]
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` = '4' ) AND ( `post`.`published_time` > '0' AND `post`.`published_time` < '1739518340' ) GROUP BY `post`.`id` ) `_group_count_` LIMIT 1 [ RunTime:0.005365s ]
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` = '4' ) AND ( `post`.`published_time` > '0' AND `post`.`published_time` < '1739518340' ) GROUP BY `post`.`id` ORDER BY `post`.`is_top` DESC,`post`.`published_time` DESC LIMIT 0,8 [ RunTime:0.009110s ]