MySQL query error: file - , line -

SELECT b.productID, b.name as productName, a1.name, a1.categoryID, a2.name as r_name2, a3.name as r_name3, b.sales_notes, b.category1ID, b.category2ID, b.category3ID, b.price_1, b.price_2, b.price_3, b.description, b.keywords, b.urlPic, b.fileName, b.vendorCode FROM sewc_shop_category a1, sewc_shop_category a2, sewc_shop_category a3, sewc_shop_products b WHERE a1.categoryID = b.category3ID AND a2.categoryID = b.category1ID AND a3.categoryID = b.category2ID AND b.keywords LIKE '%коктейльное платье%' OR b.keywords LIKE '%платье вечернее%' OR b.keywords LIKE '%подъюбник%' GROUP BY b.productID ORDER BY b.productID LIMIT 10

Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sewc_ru.a1.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by