SHOW FULL COLUMNS FROM `school_article` [ RunTime:0.001576s ]
SELECT COUNT(*) AS think_count FROM `school_article` WHERE `status` = 1 AND `category_id` = 2 [ RunTime:0.001350s ]
SELECT * FROM `school_article` WHERE `status` = 1 AND `category_id` = 2 ORDER BY `is_top` DESC,`sort_order`,`published_time` DESC LIMIT 0,12 [ RunTime:0.001398s ]
SHOW FULL COLUMNS FROM `school_category` [ RunTime:0.001277s ]
SELECT * FROM `school_category` WHERE ( `id` = 2 ) ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001208s ]
SELECT * FROM `school_category` WHERE `status` = 1 ORDER BY `sort_order` [ RunTime:0.001036s ]
SHOW FULL COLUMNS FROM `school_tag` [ RunTime:0.001287s ]
SHOW FULL COLUMNS FROM `school_article_tag` [ RunTime:0.001291s ]
SELECT *,(SELECT COUNT(`school_article_count`.`id`) AS think_count FROM `school_article` `school_article_count` INNER JOIN `school_article_tag` `pivot` ON `pivot`.`article_id`=`school_article_count`.`id` WHERE ( ( `pivot`.`tag_id` =school_tag.id ) )) AS `articles_count` FROM `school_tag` ORDER BY `articles_count` DESC LIMIT 15 [ RunTime:0.001243s ]