[ DB ] CONNECT:[ UseTime:0.000632s ] mysql:host=127.0.0.1;dbname=dbyl173_com;charset=utf8mb4
[ SQL ] SHOW COLUMNS FROM `ww_category` [ RunTime:0.000987s ]
[ SQL ] SELECT `id`,`name`,`type`,`flag`,`pid`,`image`,`nickname`,`url`,`diyname` FROM `ww_category` ORDER BY `weigh` DESC,`id` DESC [ RunTime:0.000903s ]
[ SQL ] SHOW COLUMNS FROM `ww_taglist` [ RunTime:0.000996s ]
[ SQL ] SELECT * FROM `ww_taglist` WHERE `id` = 30 AND `status` = 'normal' LIMIT 1 [ RunTime:0.000691s ]
[ SQL ] SHOW COLUMNS FROM `ww_news` [ RunTime:0.000955s ]
[ SQL ] SHOW COLUMNS FROM `ww_tag` [ RunTime:0.000865s ]
[ SQL ] SHOW COLUMNS FROM `ww_videotcpe` [ RunTime:0.001065s ]
[ SQL ] SHOW COLUMNS FROM `ww_highlights` [ RunTime:0.000917s ]
[ SQL ] SHOW COLUMNS FROM `ww_video` [ RunTime:0.000951s ]
[ SQL ] SHOW COLUMNS FROM `ww_live` [ RunTime:0.001356s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM ( SELECT `id`,`title`,`image`,matchdatetime as createtime,`category_id`,`seo_description`,'直播' as source FROM `ww_live` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'live' ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'资讯' as source FROM `ww_news` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'news' ) ) ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'录像' as source FROM `ww_videotcpe` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'videotcpe' ) ) ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'集锦' as source FROM `ww_highlights` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'highlights' ) ) ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'视频' as source FROM `ww_video` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'video' ) ) ) ) as d LIMIT 1 [ RunTime:0.002454s ]
[ SQL ] SELECT `d`.*,`c`.`diyname` FROM ( SELECT `id`,`title`,`image`,matchdatetime as createtime,`category_id`,`seo_description`,'直播' as source FROM `ww_live` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'live' ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'资讯' as source FROM `ww_news` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'news' ) ) ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'录像' as source FROM `ww_videotcpe` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'videotcpe' ) ) ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'集锦' as source FROM `ww_highlights` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'highlights' ) ) ) UNION ( ( SELECT `id`,`title`,`image`,`createtime`,`category_id`,`seo_description`,'视频' as source FROM `ww_video` WHERE `id` IN ( SELECT `app_id` FROM `ww_tag` WHERE `tag_id` = 30 AND `type` = 'video' ) ) ) ) as d LEFT JOIN `ww_category` `c` ON `d`.`category_id`=`c`.`id` ORDER BY `d`.`id` DESC LIMIT 60,15 [ RunTime:0.002726s ]
[ SQL ] SELECT `id`,`title`,`createtime`,`image`,`seo_description`,`category_id` FROM `ww_videotcpe` WHERE `status` = 'normal' ORDER BY `id` DESC LIMIT 6 [ RunTime:0.000647s ]
[ SQL ] SELECT `id`,`title`,`createtime`,`image`,`seo_description` FROM `ww_news` WHERE `status` = 'normal' ORDER BY `id` DESC LIMIT 6 [ RunTime:0.000607s ]
[ SQL ] SELECT `id`,`title`,`createtime`,`image`,`seo_description`,`category_id` FROM `ww_highlights` WHERE `status` = 'normal' ORDER BY `id` DESC LIMIT 6 [ RunTime:0.000583s ]
[ SQL ] SELECT `a`.`id`,`a`.`name` FROM `ww_taglist` `a` INNER JOIN ( SELECT `id` FROM `ww_taglist` ORDER BY rand() LIMIT 25 ) `tmp` ON `a`.`id`=`tmp`.`id` WHERE `status` = 'normal' [ RunTime:0.001407s ]
[ SQL ] SHOW COLUMNS FROM `ww_search` [ RunTime:0.000995s ]
[ SQL ] SELECT `a`.`id`,`a`.`title` FROM `ww_search` `a` INNER JOIN ( SELECT `id` FROM `ww_search` ORDER BY rand() LIMIT 25 ) `tmp` ON `a`.`id`=`tmp`.`id` WHERE `status` = 'normal' [ RunTime:0.000692s ]
[ SQL ] UPDATE `ww_taglist` SET `views`=`views`+1 WHERE `id` = 30 [ RunTime:0.001610s ]