SHOW FULL COLUMNS FROM `maoyu_article_tags` [ RunTime:0.003163s ]
SELECT `id`,`title`,`click_num` FROM `maoyu_article_tags` WHERE `id` = 1298 AND `status` = 1 LIMIT 1 [ RunTime:0.004717s ]
SHOW FULL COLUMNS FROM `maoyu_article_tags_mapping` [ RunTime:0.005498s ]
SELECT COUNT(*) AS think_count FROM `maoyu_article_tags_mapping` WHERE `tag_id` = 1298 [ RunTime:0.002453s ]
SHOW FULL COLUMNS FROM `maoyu_article` [ RunTime:0.005010s ]
SELECT COUNT(*) AS think_count FROM `maoyu_article` `a` LEFT JOIN `maoyu_article_tags_mapping` `b` ON `b`.`article_id`=`a`.`id` WHERE `a`.`status` = '1' AND `b`.`tag_id` = '1298' [ RunTime:0.004932s ]
SELECT `a`.`id`,`a`.`title`,`a`.`picture`,`a`.`desc`,`a`.`click_num`,`a`.`publish_time` FROM `maoyu_article` `a` LEFT JOIN `maoyu_article_tags_mapping` `b` ON `b`.`article_id`=`a`.`id` WHERE `a`.`status` = '1' AND `b`.`tag_id` = '1298' LIMIT 0,10 [ RunTime:0.004553s ]
SELECT `b`.`id`,`b`.`title` FROM `maoyu_article_tags_mapping` `a` LEFT JOIN `maoyu_article_tags` `b` ON `a`.`tag_id`=`b`.`id` WHERE `a`.`article_id` = '353' LIMIT 0,3 [ RunTime:0.003218s ]
UPDATE `maoyu_article_tags` SET `click_num` = `click_num` + 1 WHERE `id` = 1298 [ RunTime:0.013482s ]
SELECT `id`,`title` FROM `maoyu_article` WHERE `status` = 1 AND `rec` = 1 ORDER BY `click_num` DESC [ RunTime:0.000636s ]