In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column 'zihesabs_thm8.Parsp_products.name_fa'; this is incompatible with sql_mode=only_full_group_by
select count(*),name_fa AS _name_sort from Parsp_products where enabled=1 AND categoryID=152 OR enabled=1 AND categoryID=154 OR enabled=1 AND categoryID=156 OR enabled=1 AND categoryID=158 OR enabled=1 AND categoryID=286 OR enabled=1 AND categoryID=170 OR enabled=1 AND categoryID=174 OR enabled=1 AND categoryID=176 OR enabled=1 AND categoryID=178 OR enabled=1 AND categoryID=180 OR enabled=1 AND categoryID=182 OR enabled=1 AND categoryID=184 OR enabled=1 AND categoryID=186 OR enabled=1 AND categoryID=188 OR enabled=1 AND categoryID=190 OR enabled=1 AND categoryID=324 OR ( enabled=1 AND ( productID=267 OR productID=268) ) OR ( enabled=1 AND categoryID=322 ) OR enabled=1 AND categoryID=292 OR enabled=1 AND categoryID=326 OR enabled=1 AND categoryID=140 order by customers_rating ASC