[ DB ] CONNECT:[ UseTime:0.000306s ] mysql:host=localhost;port=3306;dbname=test_92ya_com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `ebx_project_type` [ RunTime:0.000970s ]
[ SQL ] SELECT * FROM `ebx_project_type` WHERE `cat_id` = 74 LIMIT 1 [ RunTime:0.000309s ]
[ SQL ] SELECT * FROM ebx_project_type WHERE is_show = 1 AND is_wenda = 1 ORDER BY sort_order ASC [ RunTime:0.000322s ]
[ SQL ] SELECT wt.cat_id FROM ebx_wenti AS wt LEFT JOIN ebx_huida AS hd ON hd.wenti_id=wt.id WHERE wt.is_show = 1 AND wt.baidu_shenhe = 0 AND wt.huida_count>0 AND wt.id>0 AND hd.is_show=1 GROUP BY wt.cat_id [ RunTime:0.000435s ]
[ SQL ] SELECT `cat_id`,`cat_name`,`parent_id` FROM `ebx_project_type` WHERE `is_wenda` = 1 ORDER BY parent_id asc [ RunTime:0.000262s ]
[ SQL ] select count(*) as c from ebx_wenti as a left join ebx_users as b on a.user_id=b.user_id left join ebx_project_type as c on c.cat_id=a.cat_id where c.is_wenda=1 and a.is_show = 1 AND a.cat_id in (74,104) AND a.is_top = 1 AND a.baidu_shenhe = 0 [ RunTime:0.000341s ]
[ SQL ] select a.*,b.nickname as b__nickname,c.cat_name as c__cat_name from ebx_wenti as a left join ebx_users as b on a.user_id=b.user_id left join ebx_project_type as c on c.cat_id=a.cat_id where c.is_wenda=1 and a.is_show = 1 AND a.cat_id in (74,104) AND a.is_top = 1 AND a.baidu_shenhe = 0 ORDER BY a.ctime desc LIMIT 0,3 [ RunTime:0.000378s ]
[ SQL ] SELECT `cat_id`,`cat_name`,`parent_id` FROM `ebx_project_type` WHERE `is_wenda` = 1 ORDER BY parent_id asc [ RunTime:0.000230s ]
[ SQL ] select count(*) as c from (select a.id from ebx_wenti as a left join ebx_project_type as c on c.cat_id=a.cat_id left join ebx_huida as hd on hd.wenti_id=a.id where c.is_wenda=1 and a.is_show = 1 and a.huida_count>0 and hd.id>0 and hd.is_show=1 AND a.cat_id in (74,104) AND a.baidu_shenhe = 0 group by a.id) ttt [ RunTime:0.000485s ]
[ SQL ] select a.*,b.nickname as b__nickname,c.cat_name as c__cat_name,hd.id as hd__id,hd.content as hd__content,
hd.is_caina as hd__is_caina,hd.user_id as hd__user_id,hd.user_type as hd__user_type,
hd.zan as hd__zan,hd.virtual_zan as hd__virtual_zan,hd.ctime_cn as hd__ctime_cn from ebx_wenti as a
left join ebx_users as b on b.user_id=a.user_id
left join ebx_project_type as c on c.cat_id=a.cat_id
left join ebx_huida as hd on hd.wenti_id=a.id where c.is_wenda=1 and a.is_show = 1 and a.huida_count>0 and hd.id>0 and hd.is_show=1 AND a.cat_id in (74,104) AND a.baidu_shenhe = 0 group by a.id ORDER BY a.is_top desc,a.ctime desc,hd.is_caina desc,hd.ctime desc LIMIT 0,10 [ RunTime:0.001050s ]
[ SQL ] SHOW COLUMNS FROM `ebx_users` [ RunTime:0.000795s ]
[ SQL ] SELECT * FROM `ebx_users` WHERE `user_id` = 111 LIMIT 1 [ RunTime:0.000223s ]
[ SQL ] SELECT * FROM `ebx_users` WHERE `user_id` = 111 LIMIT 1 [ RunTime:0.000218s ]
[ SQL ] SELECT * FROM `ebx_users` WHERE `user_id` = 111 LIMIT 1 [ RunTime:0.000212s ]
[ SQL ] SELECT * FROM `ebx_users` WHERE `user_id` = 111 LIMIT 1 [ RunTime:0.000229s ]
[ SQL ] SELECT * FROM `ebx_users` WHERE `user_id` = 222 LIMIT 1 [ RunTime:0.000210s ]
[ SQL ] SELECT * FROM `ebx_users` WHERE `user_id` = 145 LIMIT 1 [ RunTime:0.000222s ]