SHOW FULL COLUMNS FROM `school_article` [ RunTime:0.001337s ]
SELECT COUNT(*) AS think_count FROM `school_article` WHERE `status` = 1 [ RunTime:0.001118s ]
SELECT * FROM `school_article` WHERE `status` = 1 ORDER BY `is_top` DESC,`sort_order`,`published_time` DESC LIMIT 0,12 [ RunTime:0.001282s ]
SHOW FULL COLUMNS FROM `school_category` [ RunTime:0.001535s ]
SELECT * FROM `school_category` WHERE ( `id` IN (1,2,3) ) ORDER BY `id` DESC LIMIT 1000 [ RunTime:0.001080s ]
SELECT * FROM `school_category` WHERE `status` = 1 ORDER BY `sort_order` [ RunTime:0.001076s ]
SHOW FULL COLUMNS FROM `school_tag` [ RunTime:0.001795s ]
SHOW FULL COLUMNS FROM `school_article_tag` [ RunTime:0.001379s ]
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.001347s ]