MySQL query error: file - /var/www/sewc/data/www/7dress.ru/class/utils.class.php, line - 2879

SELECT a.id_param_name, param_name, a.categoryID, a.description, a.type, a.sort, b.id_param_value, param_value, b.description FROM tmc_shop_product_param_name a, tmc_shop_product_param_value b, tmc_shop_product_param_hook c WHERE a.id_param_name = c.id_param_name AND b.id_param_value = c.id_param_value AND c.id_product = 8 GROUP BY b.id_param_value ORDER BY a.id_param_name, a.sort

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'myfatin_ru.a.id_param_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by