SHOW FULL COLUMNS FROM `school_article` [ RunTime:0.001449s ]
SELECT COUNT(*) AS think_count FROM `school_article` WHERE `status` = 1 [ RunTime:0.001107s ]
SELECT * FROM `school_article` WHERE `status` = 1 ORDER BY `is_top` DESC,`sort_order`,`published_time` DESC LIMIT 0,12 [ RunTime:0.001219s ]
SHOW FULL COLUMNS FROM `school_category` [ RunTime:0.001356s ]
SELECT * FROM `school_category` WHERE ( `id` IN (1,2,3) ) ORDER BY `id` DESC LIMIT 1000 [ RunTime:0.001246s ]
SELECT * FROM `school_category` WHERE `status` = 1 ORDER BY `sort_order` [ RunTime:0.001243s ]
SHOW FULL COLUMNS FROM `school_tag` [ RunTime:0.001384s ]
SHOW FULL COLUMNS FROM `school_article_tag` [ RunTime:0.001249s ]
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.001285s ]