[ DB ] CONNECT:[ UseTime:0.000254s ] mysql:host=localhost;port=3306;dbname=test_92ya_com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `ebx_config` [ RunTime:0.000955s ]
[ SQL ] SELECT * FROM `ebx_config` [ RunTime:0.000611s ]
[ SQL ] SHOW COLUMNS FROM `ebx_article_unique_tags` [ RunTime:0.002171s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 21 LIMIT 1 [ RunTime:0.000279s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 21 LIMIT 1 [ RunTime:0.000234s ]
[ SQL ] SELECT * FROM (
SELECT * FROM (
SELECT 'article' as table_id, b.article_id as 't__id', b.user_id as 't__eid', a.tag, b.cat_id, b.title, b.author,b.come_from, b.keywords, b.add_time,
b.introduction, b.description, b.click, b.publish_time, b.thumb, b.virtual_num, b.type, b.video_thumb, b.is_duotu, b.image_url, b.update_time,
(CASE WHEN `a`.`tag` = '呵呵' THEN 1000 ELSE 0 END) AS Index0
FROM ebx_article AS b LEFT JOIN ebx_article_tags AS a ON a.article_id =b.article_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = '呵呵' ) group by b.article_id ) t_100
UNION
SELECT * FROM (
SELECT 'kepu' as table_id, b.kepu_id as 't__id', b.eid as 't__eid', a.tag, b.cat_id, b.title, b.author,b.come_from, b.keywords, b.add_time,
b.introduction, b.description, b.click, b.publish_time, b.thumb, b.virtual_num, b.kepu_type as type, b.video_thumb, '0' as is_duotu, '' as image_url, b.update_time,
(CASE WHEN `a`.`tag` = '呵呵' THEN 1000 ELSE 0 END) AS Index0
FROM ebx_kepu AS b LEFT JOIN ebx_kepu_tags AS a ON a.kepu_id =b.kepu_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = '呵呵' ) group by b.kepu_id ) t_101
) t_200 ORDER BY Index0 DESC limit 0,10 [ RunTime:0.001898s ]
[ SQL ] SELECT sum(c) as ccc FROM (
SELECT count(*) as c
FROM ebx_article AS b LEFT JOIN ebx_article_tags AS a ON a.article_id =b.article_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = '呵呵' )
UNION
SELECT count(*) as c
FROM ebx_kepu AS b LEFT JOIN ebx_kepu_tags AS a ON a.kepu_id =b.kepu_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = '呵呵' )
) t_200 limit 1 [ RunTime:0.000381s ]