SHOW FULL COLUMNS FROM `zl_user_token` [ RunTime:0.000578s ]
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.000492s ]
SHOW FULL COLUMNS FROM `zl_class` [ RunTime:0.000520s ]
SELECT `parentclass` FROM `zl_class` WHERE `classid` = 5 LIMIT 1 [ RunTime:0.000297s ]
SELECT `classname` FROM `zl_class` WHERE `classid` = 5 LIMIT 1 [ RunTime:0.000196s ]
SHOW FULL COLUMNS FROM `zl_portal` [ RunTime:0.000545s ]
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` = '5' OR `c`.`parentclass` LIKE '%|5|%' ) AND `onshow` = 1 GROUP BY `p`.`id` ) `_group_count_` LIMIT 1 [ RunTime:0.005827s ]
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` = '5' OR `c`.`parentclass` LIKE '%|5|%' ) AND `onshow` = 1 GROUP BY `p`.`id` ORDER BY `newstime` DESC,`isgood` DESC,`firsttitle` DESC,`p`.`onclick` DESC LIMIT 0,20 [ RunTime:0.012860s ]