SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  descr1.product as product, 
  companies.company as company_name, 
  products.product_type, 
  products.parent_product_id, 
  cscart_product_review_prepared_data.average_rating average_rating, 
  cscart_product_review_prepared_data.reviews_count product_reviews_count 
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 
  LEFT JOIN cscart_product_review_prepared_data ON cscart_product_review_prepared_data.product_id = products.product_id 
  AND cscart_product_review_prepared_data.storefront_id = 0 
  LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id 
WHERE 
  1 
  AND cscart_categories.category_id IN (215) 
  AND products.product_id NOT IN (0) 
  AND companies.status IN ('A') 
  AND (
    products.amount > 0 
    OR products.tracking = 'D'
  ) 
  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.parent_product_id = 0 
GROUP BY 
  products.product_id 
ORDER BY 
  popularity.total desc, 
  products.product_id ASC 
LIMIT 
  0, 32

Query time 0.02409

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "popularity.total desc, products.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "const",
              "possible_keys": ["PRIMARY", "p_category_id"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["category_id"],
              "ref": ["const"],
              "rows": 1,
              "filtered": 100,
              "using_index": true
            }
          },
          {
            "table": {
              "table_name": "products_categories",
              "access_type": "range",
              "possible_keys": ["PRIMARY", "pt"],
              "key": "PRIMARY",
              "key_length": "6",
              "used_key_parts": ["category_id", "product_id"],
              "rows": 391,
              "filtered": 1.086111069,
              "attached_condition": "products_categories.category_id = 215 and products_categories.product_id <> 0",
              "using_index": true
            }
          },
          {
            "table": {
              "table_name": "products",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "ref": ["dev_db.products_categories.product_id"],
              "rows": 1,
              "filtered": 18.54700279,
              "attached_condition": "products.parent_product_id = 0 and (products.amount > 0 or products.tracking = 'D') and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A'"
            }
          },
          {
            "table": {
              "table_name": "companies",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "4",
              "used_key_parts": ["company_id"],
              "ref": ["dev_db.products.company_id"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "companies.`status` = 'A'"
            }
          },
          {
            "table": {
              "table_name": "descr1",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "product_id"],
              "key": "PRIMARY",
              "key_length": "11",
              "used_key_parts": ["product_id", "lang_code"],
              "ref": ["dev_db.products_categories.product_id", "const"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(descr1.lang_code = 'en')"
            }
          },
          {
            "table": {
              "table_name": "cscart_product_review_prepared_data",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "7",
              "used_key_parts": ["product_id", "storefront_id"],
              "ref": ["dev_db.products_categories.product_id", "const"],
              "rows": 1,
              "filtered": 100
            }
          },
          {
            "table": {
              "table_name": "popularity",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "total"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "ref": ["dev_db.products_categories.product_id"],
              "rows": 1,
              "filtered": 100
            }
          },
          {
            "table": {
              "table_name": "prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "product_id",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "ref": ["dev_db.products_categories.product_id"],
              "rows": 1,
              "filtered": 99.9960556,
              "attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id product company_name product_type parent_product_id average_rating product_reviews_count
3764 Crochet 12 Vietnamese Zodiac Signs Collection, Set Of Zodiac Animals Toys, Birthday Gifts, Woolen Zodiac Animals ACI HOME P 0 5.00 3
3749 Handmade Crochet Iron Man, Iron Man Wool, Iron Man Keychain In Wool, Iron Man Marvel Knitted In Wool, Iron Man Woolen Toy ACI HOME P 0 5.00 2
6463 1st Birthday Party Gift Box For Baby, Future Jobs, One-Year-Old Gift Box, Future Profession, Baby Gift Set, Baby Rattles, Baptismal Gifts Siblings P 0 5.00 3
1832 Fabric Stuffed Toys, Handmade Plush Toy, Handmade Toy, Toy For Kids, Cute Stuffed Animals, Fabric Plush Toys Hoa Tiến Brocade P 0 5.00 3
4038 Crochet Unicorn Rattle Toy, Fabric Unicorn Plush, Unicorn Plush Toy, Pink Woolen Unicorn, Gift For Kids The Little Swing P 0 5.00 2
734 Brocade Teddy Bear, Super Cute Plush Bear, High-Quality Stuffed Animal, Handcrafted Toy, Teddy Bear, Gift For Kids Thổ Cẩm PIÊU - Brocade Decor P 0 5.00 3
3745 Handmade Crochet Spiderman, Mini Spider Keychain, Spiderman Stuffed Animal, Handmade Woolen Spiderman, Spiderman Toy ACI HOME P 0 5.00 1
2082 Bom Rabbit Stuffed Toy, Adorable Bunny Plush, Bunny Stuffed Animal, Handmade Fabric Bunny, Plush Toy As A Gift KATTIE HANDMADE P 0 4.50 2
3750 Handmade Crochet Captain America, Captain America Woolen Keychain, Mini Woolen Stuffed Animal, Captain America Woolen Toy ACI HOME P 0 5.00 2
4604 Crochet Stuffed Standing Kangaroo Mommy And Baby, Medium Size, Woolen Kangaroo Plush, Mother And Baby Kangaroo Stuffed Animals Bobi Craft P 0 4.50 2
188 Lily Rabbit, Cute Bunny, Adorable Stuffed Animal, Handmade Crochet Doll, Exquisite Handmade Gift For Kids Eck Homemade P 0 5.00 1
3765 Harry Potter Crochet Doll, Harry Potter Plushie, Crochet Plushie, Toys for Kids, Cute Plushie, Gift for Kids ACI HOME P 0 5.00 1
18160 White & Brown Crochet Stuffed Rabbit, Crocheted Rabbit Stuffed Animal, Rabbit Plush Toy, Cute Toy, Baby Birthday Gift Bobi Craft P 0 5.00 2
3754 The Tiger, Crochet Animal, 12 Vietnamese Zodiac Signs, Tiger-Shaped Woolen Keychain, Woolen Keychains, Birthday Gifts ACI HOME P 0 4.00 2
4047 Crochet Sloth Rattle Toy, Toy For Kids, Decorative Toy, Sloth Plush With Bells, Bear Hug For Kids, Woolen Toy The Little Swing P 0 5.00 2
4648 Bluetooth Speaker Stuffed Blue Sheep, Blue Sheep Storyteller, Stuffed Animal, Knitted Plush With Bluetooth Speaker, Knitted Stuffed Animal Bobi Craft P 0 5.00 2
4650 Lily Crochet Stuffed Doll, Handmade Knitted Doll, Knitted Stuffed Animal, Handmade Knitted Plush, Knitted Doll At Good Price Bobi Craft P 0 5.00 1
3747 Handmade Crochet Black Panther, Black Panther Wool, Woolen Stuffed Panther Keychain, Black Panther Keychain, Mini Woolen Keychain ACI HOME P 0 5.00 2
2081 Bam Fox Stuffed Toy, Fabric Fox Plush, Cute Fox Stuffed Animal, Handmade Fox Plush Toy, Fabric Toy For Kids KATTIE HANDMADE P 0 4.75 4
3760 The Monkey, Crochet Animal, 12 Vietnamese Zodiac Signs, Handmade Woolen Monkey, Woolen Stuffed Animal, Zodiac Animals Keychains, ACI HOME P 0 5.00 1
657 Handmade Fabric Buno Rabbit Doll, Stuffed Animal, Baby Toy, Soft Fabric Toy, Cute Buno Bunny, Handcrafted Bunny Giggle Handmade P 0 4.75 4
4599 Crochet Stuffed Standing Lizzie Bear, Medium Size, Plush Bear For Beloved Kids, Woolen Bear Keychain, Woolen Toy, Mini Bear Plush Bobi Craft P 0 5.00 2
3756 The Dragon, Crochet Animal, 12 Vietnamese Zodiac Signs, Dragon-Shaped Keychain, Handmade Woolen Dragon ACI HOME P 0
4043 Crochet Lion Rattle Toy, Green Lion Plush, Lion Plush Keychain, Woolen Toy Handmade, Lion Plush For Kids The Little Swing P 0 5.00 1
6254 Playful Barbara Sheep Crochet Stuffed, Stuffed Animal, Handmade Knitted Plush, Safe Handmade Toy, Gift For Kids Bobi Craft P 0 5.00 2
3753 The Ox, Crochet Animal, 12 Vietnamese Zodiac Signs, Keychains Of Zodiac Animals In Wool, Woolen Stuffed Animals, Handmade Woolen Keychains ACI HOME P 0
3767 Hermione Granger Crochet Doll, Hermione Doll, Woolen Plush Keychain, Hermione Keychain Made Of Wool, Graduation Gift ACI HOME P 0 5.00 1
3755 The Cat, Crochet Animal, 12 Vietnamese Zodiac Signs, Handmade Woolen Stuffed Animals, Mini Keychain Of Cat, Zodiac Animals Keychains ACI HOME P 0 5.00 1
3768 Set of 3 Crochet Dolls, Harry Potter, Ron Weasley & Scabbers, and Hermione Granger ACI HOME P 0 5.00 1
4637 Crochet Stuffed Sitting Cute Kangaroo, Sitting Baby Kangaroo With Bow, Plush Toy, Stuffed Animal, High-Quality Handmade Toy, Knitted Toy Bobi Craft P 0 5.00 3
4040 Crochet Bear Rattle Toy, Stuffed Animal For Kids, Soft Cotton Wool Bear, Bear Plush With Bell, Handmade Woolen Toy The Little Swing P 0 5.00 1
4595 Crochet Stuffed Standing Bobbie Bear, Large Size, Woolen Bear Plush, Woolen Bear Keychain, Bear For Kids To Cuddle While Sleeping Bobi Craft P 0 5.00 1