SHOW FULL COLUMNS FROM `zl_user_token` [ RunTime:0.000500s ]
SELECT `b`.* FROM `zl_user_token` `a` INNER JOIN `zl_user` `b` ON `a`.`user_id`=`b`.`user_id` WHERE `token` IS NULL AND `device_type` = 'pc' LIMIT 1 [ RunTime:0.000431s ]
SHOW FULL COLUMNS FROM `zl_class` [ RunTime:0.000471s ]
SELECT `parentclass` FROM `zl_class` WHERE `classid` = 79 LIMIT 1 [ RunTime:0.000235s ]
SELECT * FROM `zl_class` WHERE `classid` IN (5,79) AND `classid` <> 5 ORDER BY field(classid,5,79) [ RunTime:0.000312s ]
SELECT `classname` FROM `zl_class` WHERE `classid` = 79 LIMIT 1 [ RunTime:0.000245s ]
SHOW FULL COLUMNS FROM `zl_portal` [ RunTime:0.000556s ]
SELECT COUNT(*) AS think_count FROM ( SELECT count(*) AS think_count FROM `zl_portal` `p` INNER JOIN `zl_class` `c` ON `c`.`classid`=`p`.`classid` WHERE ( `c`.`classid` = '79' OR `c`.`parentclass` LIKE '%|79|%' ) AND `onshow` = 1 GROUP BY `p`.`id` ) `_group_count_` LIMIT 1 [ RunTime:0.001215s ]
SELECT `id`,`p`.`classid`,`c`.`classname`,`p`.`title`,`titlepic`,`newstext`,`price`,`buyfen`,`newstime`,`p`.`onclick` FROM `zl_portal` `p` INNER JOIN `zl_class` `c` ON `c`.`classid`=`p`.`classid` WHERE ( `c`.`classid` = '79' OR `c`.`parentclass` LIKE '%|79|%' ) AND `onshow` = 1 GROUP BY `p`.`id` ORDER BY `newstime` DESC,`isgood` DESC,`firsttitle` DESC,`p`.`onclick` DESC LIMIT 0,20 [ RunTime:0.001790s ]