Array ( [0] => flannian-sql [1] => select COUNT(d.DiscussionID) as `HotDiscussionsCount`, d.*, d.InsertUserID as `FirstUserID`, d.DateInserted as `FirstDate`, d.DateLastComment as `LastDate`, d.LastCommentUserID as `LastUserID`, 0 as `WatchUserID`, now() as `DateLastViewed`, 0 as `Dismissed`, 0 as `Bookmarked`, 0 as `CountCommentWatch`, 0 as `Participated`, 0 as `Read`, d.Announce as `IsAnnounce`, case when d.WGMode = 2 then ( CEIL ( (SELECT COUNT(*) FROM `GDN_Discussion` WHERE `WGMode` = 2 and WGFaBuTime >= d.WGFaBuTime) /3 ) )*2+1 else CEIL ( ( (SELECT COUNT(*) FROM `GDN_Discussion` WHERE `WGMode` <> 2 and WGFaBuTime >= d.WGFaBuTime) ) /3 )*2 end as `WGGroupOrderFixed` from GDN_Discussion d where (d.CountViews >= :dCountViews or d.CountComments >= :dCountComments) and d.CategoryID in ('-1', '40', '44', '45', '46', '47', '23', '48', '42', '13', '43', '1', '31', '41', '49', '53', '51', '52', '54', '55') and d.Type = :dType and d.WGShenHe = :dWGShenHe and d.WGFaBuTime <> :dWGFaBuTime and d.WGFaBuTime < :dWGFaBuTime0 order by WGGroupOrderFixed asc, d.WGFaBuTime desc, d.WGGroupOrder desc limit 10 [2] => 42000 [3] => 1140 [4] => In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column 'KangLink.d.DiscussionID'; this is incompatible with sql_mode=only_full_group_by [5] => no PDOStatement )