SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  IF(
    shared_descr.product_id IS NOT NULL, 
    shared_descr.product, descr1.product
  ) as product, 
  companies.company as company_name, 
  SUM(cscart_order_details.amount) as sales_amount, 
  products.product_type, 
  products.parent_product_id 
FROM 
  cscart_products as products 
  LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id 
  AND descr1.lang_code = 'en' 
  LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id 
  AND prices.lower_limit = 1 
  LEFT JOIN cscart_companies AS companies ON companies.company_id = products.company_id 
  INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id 
  INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id 
  AND (
    cscart_categories.usergroup_ids = '' 
    OR FIND_IN_SET(
      0, cscart_categories.usergroup_ids
    ) 
    OR FIND_IN_SET(
      1, cscart_categories.usergroup_ids
    )
  ) 
  AND cscart_categories.status IN ('A', 'H') 
  AND cscart_categories.storefront_id IN (0, 1) 
  LEFT JOIN cscart_ult_product_descriptions shared_descr ON shared_descr.product_id = products.product_id 
  AND shared_descr.company_id = 1 
  AND shared_descr.lang_code = 'en' 
  LEFT JOIN cscart_product_restricted_countries AS prc ON prc.product_id = products.product_id 
  AND prc.country_code = 'US' 
  LEFT JOIN cscart_discussion ON cscart_discussion.object_id = products.product_id 
  AND cscart_discussion.object_type = 'P' 
  LEFT JOIN (
    SELECT 
      cscart_discussion_rating.thread_id, 
      AVG(
        cscart_discussion_rating.rating_value
      ) AS overall_rating 
    FROM 
      cscart_discussion_rating 
    GROUP BY 
      thread_id
  ) AS ratings ON ratings.thread_id = cscart_discussion.thread_id 
  INNER JOIN cscart_order_details ON cscart_order_details.product_id = products.product_id 
  INNER JOIN cscart_orders ON cscart_orders.order_id = cscart_order_details.order_id 
  AND cscart_orders.status IN ('C', 'P') 
WHERE 
  1 
  AND cscart_categories.category_id IN (17) 
  AND companies.status IN ('A') 
  AND (
    products.usergroup_ids = '' 
    OR FIND_IN_SET(0, products.usergroup_ids) 
    OR FIND_IN_SET(1, products.usergroup_ids)
  ) 
  AND products.status IN ('A') 
  AND prices.usergroup_id IN (0, 0, 1) 
  AND (
    products.available_worldwide = 'Y' 
    OR prc.country_code IS NULL
  ) 
  AND cscart_order_details.amount >= 1 
  AND cscart_order_details.price != 0.00 
  AND cscart_orders.timestamp >= 1715848669 
  AND products.product_type IN ('P') 
  AND is_album = 'Y' 
  AND (products.product_type = 'P') 
  AND products.parent_product_id = 0 
GROUP BY 
  cscart_order_details.product_id 
ORDER BY 
  sales_amount desc, 
  products.product_id ASC 
LIMIT 
  0, 10

Query time 0.05515

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY cscart_categories const PRIMARY,c_status,p_category_id PRIMARY 3 const 1 Using temporary; Using filesort
1 PRIMARY companies ALL PRIMARY 1 Using where
1 PRIMARY cscart_orders range PRIMARY,timestamp,status timestamp 4 1376 Using index condition; Using where; Using join buffer (flat, BNL join)
1 PRIMARY cscart_order_details ref o_k o_k 3 toolboxdigitalshop_dev.cscart_orders.order_id 3 Using where
1 PRIMARY products_categories eq_ref PRIMARY,pt PRIMARY 6 const,toolboxdigitalshop_dev.cscart_order_details.product_id 1 Using index
1 PRIMARY prices ref usergroup,product_id,lower_limit,usergroup_id usergroup 3 toolboxdigitalshop_dev.cscart_order_details.product_id 1 Using where; Using index
1 PRIMARY products eq_ref PRIMARY,status,idx_parent_product_id PRIMARY 3 toolboxdigitalshop_dev.cscart_order_details.product_id 1 Using where
1 PRIMARY shared_descr eq_ref PRIMARY,product_id,company_id PRIMARY 13 toolboxdigitalshop_dev.cscart_order_details.product_id,const,const 1 Using where
1 PRIMARY prc eq_ref PRIMARY PRIMARY 9 toolboxdigitalshop_dev.cscart_order_details.product_id,const 1 Using where; Using index
1 PRIMARY descr1 eq_ref PRIMARY,product_id PRIMARY 9 toolboxdigitalshop_dev.cscart_order_details.product_id,const 1 Using where
1 PRIMARY cscart_discussion ref object_id object_id 6 toolboxdigitalshop_dev.cscart_order_details.product_id,const 1 Using where; Using index
1 PRIMARY <derived2> ref key0 key0 4 toolboxdigitalshop_dev.cscart_discussion.thread_id 2 Using where
2 DERIVED cscart_discussion_rating ALL thread_id 1 Using temporary; Using filesort

Result

product_id product company_name sales_amount product_type parent_product_id
120593 Vocals Compilation Vol.2 Toolbox Digital Shop 1 P 0