[ DB ] CONNECT:[ UseTime:0.000479s ] mysql:host=127.0.0.1;dbname=ourchildren2020;charset=utf8
[ SQL ] SHOW COLUMNS FROM `post` [ RunTime:0.001289s ]
[ SQL ] SELECT p.id, p.title, p.category_id, p.school_id, p.headimg, p.summary, p.views, p.likes, p.showtime, p.author, p.source, p.source_link, p.page_width, c.type cate_type, p.buy_link, p.vendor_id, IF(p.vendor_id, (SELECT name FROM vendor WHERE id = p.vendor_id), '') vendor_name, p.video_iframe FROM `post` `p` LEFT JOIN `category` `c` ON `c`.`id`=`p`.`category_id` WHERE `p`.`id` = '2821' AND `p`.`status` = '1' AND `p`.`showtime` < '1732194033' LIMIT 1 [ RunTime:0.000480s ]
[ SQL ] SHOW COLUMNS FROM `post_content` [ RunTime:0.000816s ]
[ SQL ] SELECT `name`,`content`,`grade`,`type` FROM `post_content` WHERE `post_id` = 2821 ORDER BY `item` ASC [ RunTime:0.000251s ]
[ SQL ] UPDATE `post` SET `views` = 2961 WHERE `id` = 2821 [ RunTime:0.000213s ]
[ SQL ] SHOW COLUMNS FROM `post_kwds` [ RunTime:0.000627s ]
[ SQL ] SELECT `k`.`kwd` FROM `post_kwds` `pk` INNER JOIN `kwds` `k` ON `pk`.`kwds_id`=`k`.`id` WHERE `pk`.`post_id` = '2821' ORDER BY `pk`.`item` [ RunTime:0.000274s ]
[ SQL ] SELECT DISTINCT `p`.`id`,`p`.`title`,`p`.`headimg`,`p`.`summary`,`p`.`showtime`,`p`.`views` FROM `post` `p` INNER JOIN `post_kwds` `pk1` ON `pk1`.`post_id`=`p`.`id` INNER JOIN `category` `c` ON `c`.`id`=`p`.`category_id` WHERE ( `pk1`.`kwds_id` IN (SELECT kwds_id FROM post_kwds WHERE post_id = 2821) ) AND `c`.`type` = '1' ORDER BY `p`.`showtime` DESC LIMIT 1 [ RunTime:0.000338s ]
[ SQL ] SELECT `p`.`id`,`p`.`title`,`p`.`summary`,`p`.`headimg`,`p`.`category_id`,`p`.`views`,`p`.`showtime`,`p`.`status` FROM `post` `p` INNER JOIN `category` `c` ON `c`.`id`=`p`.`category_id` WHERE `c`.`type` = '2' AND `p`.`hot` > '0' AND `p`.`status` = '1' AND `showtime` < 1732194033 AND `p`.`id` NOT IN ('2821') ORDER BY `p`.`hot` DESC LIMIT 14 [ RunTime:0.001534s ]
[ SQL ] SELECT * FROM `post` WHERE `showtime` <= 1598889600 AND `id` < 2821 AND `category_id` = 15 AND `status` = 1 ORDER BY `showtime` DESC,`id` DESC LIMIT 1 [ RunTime:0.001681s ]
[ SQL ] SELECT * FROM `post` WHERE `showtime` >= 1598889600 AND `id` > 2821 AND `category_id` = 15 AND `status` = 1 ORDER BY `showtime` ASC,`id` ASC LIMIT 1 [ RunTime:0.001569s ]
[ SQL ] SHOW COLUMNS FROM `nav` [ RunTime:0.000992s ]
[ SQL ] SELECT `id` FROM `nav` WHERE `type` = 1 AND `category_id` = 15 LIMIT 1 [ RunTime:0.000236s ]