1055: Expression #28 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hdwallpapersfun_pics.b.category_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by<br />SELECT a.*, b.* FROM `ws_items` a, `ws_items_categories` b, `ws_categories` c
WHERE c.id=b.category_id AND b.item_id=a.id AND (b.category_id='875' OR b.category_id IN (1015,989,1025,2313,1021,982,2281,2328,2257,1011,1005,2315,1016,1006,974,1000,1028,1045,1001,1010,996,2365,972,993,987,2419,2268,973,1043,1046,1018,2317,985,2262,1042,1002,2286,983,984,1017,1012,977,1007,1024,2414,2282,992,2269,2426,975,2408,1009,1238,2292,1044,1236,2302,1020,1227,1022,2369,1239,1030,2311,1038,1013,1004,1023,1027,980,2334,2263,981,2298,1041,1040,976,988,1031,2294,2326,2300,1039,1019,2299,2285,2297,2259,1029,990,1014,1036,2260,2421,1033,1262,1235,2272,1037,2321,2386,1034,991,2389,998,979,1003,1032,2403,999,2277,978,2427,986,1035,997) )
AND c.`enabled`=1 AND a.`enabled`=1 AND a.`visible`=1 GROUP BY a.id order by a.`created` DESC limit 0,16
error