[ SQL ] SELECT DISTINCT post.id FROM `cmf_portal_post` `post` where `post`.`post_type` = 1 AND `post`.`delete_time` = 0 and post.id in (select post_id from cmf_portal_tag_post where tag_id=57 ) [ RunTime:0.001200s ]
[ SQL ] SHOW COLUMNS FROM `cmf_portal_post` [ RunTime:0.000666s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT count(*) FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `category_post` ON `post`.`id`=`category_post`.`post_id` WHERE `post`.`id` IN ('105','151','190','191') AND `post`.`post_status` = 1 AND `post`.`post_type` = 1 AND `post`.`delete_time` = 0 AND `post`.`create_time` >= 0 AND `post_title` LIKE '%%' AND ( `post`.`published_time` > '0' and `post`.`published_time` < 1569560017 ) GROUP BY `post`.`id` ) `_group_count_` LIMIT 1 [ RunTime:0.000653s ]
[ SQL ] SELECT post.*,min(category_post.category_id) as category_id FROM `cmf_portal_post` `post` INNER JOIN `cmf_portal_category_post` `category_post` ON `post`.`id`=`category_post`.`post_id` WHERE `post`.`id` IN ('105','151','190','191') AND `post`.`post_status` = 1 AND `post`.`post_type` = 1 AND `post`.`delete_time` = 0 AND `post`.`create_time` >= 0 AND `post_title` LIKE '%%' AND ( `post`.`published_time` > '0' and `post`.`published_time` < 1569560017 ) GROUP BY `post`.`id` LIMIT 0,10 [ RunTime:0.001287s ]
[ SQL ] SELECT post.*,min(category_post.category_id) as category_id FROM `cmf_portal_post` `post` INNER JOIN `cmf_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` = '1' ) AND ( `post`.`published_time` > '0' and `post`.`published_time` < 1569560017 ) GROUP BY `post`.`id` ORDER BY `post`.`published_time` DESC LIMIT 5 [ RunTime:0.013827s ]