[ SQL ] SELECT `post`.* FROM `vbs_portal_post` `post` INNER JOIN `vbs_portal_category_post` `relation` ON `post`.`id`=`relation`.`post_id` WHERE `post`.`post_type` = 1 AND `post`.`post_status` = 1 AND `post`.`delete_time` = 0 AND `relation`.`category_id` = 2 AND `relation`.`post_id` < 21 AND ( `post`.`published_time` > 0 AND `post`.`published_time` < 1702147513 ) ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000373s ]
[ SQL ] SELECT `post`.* FROM `vbs_portal_post` `post` INNER JOIN `vbs_portal_category_post` `relation` ON `post`.`id`=`relation`.`post_id` WHERE `post`.`post_type` = 1 AND `post`.`post_status` = 1 AND `post`.`delete_time` = 0 AND `relation`.`category_id` = 2 AND `relation`.`post_id` > 21 AND ( `post`.`published_time` > 0 AND `post`.`published_time` < 1702147513 ) ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000548s ]
[ SQL ] SELECT post.*,min(category_post.category_id) as category_id FROM `vbs_portal_post` `post` INNER JOIN `vbs_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 ( `category_post`.`category_id` = '12' ) AND ( `post`.`published_time` > 0 AND `post`.`published_time` < 1702147513 ) GROUP BY `post`.`id` ORDER BY `post`.`published_time` DESC LIMIT 5 [ RunTime:0.000945s ]