SHOW FULL COLUMNS FROM `school_article` [ RunTime:0.002183s ]
SELECT COUNT(*) AS think_count FROM `school_article` WHERE `status` = 1 AND `category_id` = 3 [ RunTime:0.001252s ]
SELECT * FROM `school_article` WHERE `status` = 1 AND `category_id` = 3 ORDER BY `is_top` DESC,`sort_order`,`published_time` DESC LIMIT 0,12 [ RunTime:0.001338s ]
SHOW FULL COLUMNS FROM `school_category` [ RunTime:0.001236s ]
SELECT * FROM `school_category` WHERE ( `id` = 3 ) ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001104s ]
SELECT * FROM `school_category` WHERE `status` = 1 ORDER BY `sort_order` [ RunTime:0.001102s ]
SHOW FULL COLUMNS FROM `school_tag` [ RunTime:0.001278s ]
SHOW FULL COLUMNS FROM `school_article_tag` [ RunTime:0.001134s ]
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.001569s ]