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

SELECT a.id_param_name, a.param_name, a.categoryID, a.description, a.type, a.sort, b.id_param_value, b.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 OR a.categoryID = 20 AND a.categoryID = 0 AND a.type = "table" GROUP BY b.param_value ORDER BY 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