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 
  LEFT JOIN cscart_products_tag_categories as products_tag_categories ON products_tag_categories.product_id = products.product_id 
  LEFT JOIN cscart_categories ON cscart_categories.category_id = products_tag_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 (
    416, 490, 491, 492, 493, 494, 495, 496, 
    497, 498, 499, 500, 501, 502, 503, 504, 
    513, 506, 507, 508, 509, 510, 511, 514, 
    515, 519, 517, 518
  ) 
  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 
  736, 32

Query time 1.00534

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": "range",
              "possible_keys": ["PRIMARY", "p_category_id"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["category_id"],
              "rows": 28,
              "filtered": 100,
              "attached_condition": "cscart_categories.category_id in (416,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,513,506,507,508,509,510,511,514,515,519,517,518)",
              "using_index": true
            }
          },
          {
            "table": {
              "table_name": "products_tag_categories",
              "access_type": "ref",
              "possible_keys": ["PRIMARY", "pt"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["category_id"],
              "ref": ["dev_db.cscart_categories.category_id"],
              "rows": 426,
              "filtered": 100,
              "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_tag_categories.product_id"],
              "rows": 1,
              "filtered": 18.48341942,
              "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_tag_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_tag_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_tag_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_tag_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
2131 Belgo Blonde Beer (19 Ibu), Traditional Belgian Beer, Handcrafted, Refreshing Fruity Taste, Moderate Bitterness, Pleasant Aroma Belgo & Origin P 0 4.88 8
1666 Hand-poured Scented Candles Skinlax P 0 5.00 1
6610 Peanut Palm Sugar Coconut Candy, Maltose Coconut Candy, Peanut Candy, Served With Hot Tea, Specialty Gift, Gift For Grandparents Chái bếp - Thực phẩm an lành Bến Tre P 0 5.00 3
38139 Brocade Box-Shaped Bag, Cosmetic Pouches, Convenient Travel Accessories, Spacious Compartment, Unique Ethnic Patterns Thổ Cẩm PIÊU - Brocade Decor P 0 5.00 1
6576 Vital Facial Skin Brightening Serum For Men, Brightening Dark Spot Serum, Men's Whitening Serum, Moisturizing Serum, Pore Tightening Men Stay Simplicity P 0 5.00 1
637 Handmade Bride and Groom Bear Rabbit Clay Figurine, Chibi Figurine, Handmade Clay Couple, Meaningful Wedding Gift, Custom Gift, Personalized Gift Siblings P 0 5.00 12
5407 Traveling Denim Drum Bag From Recycled Jeans, Size 50, Impressive Design, Spacious Bag Shape, Can Hold Many Items, Suitable For Long Trips Renew Jeans P 0 5.00 1
31899 Ancient Chrysanthemum Tea Box of 80g, Vietnamese Herbal Tea, Stress Relief Tea, Sleep Aid Tea, Natural Sweetness, Tea Gift Box Mohodo Farmers P 0 4.78 36
2553 Flower Wreath Wooden Frame, Artistic Dried Flower Arrangement, Simple and Rustic Design, Decorates Living Spaces Flora Collab P 0 5.00 5
330 Herbal Shampoo, Colored Hair Hương Như Thảo Mộc P 0 5.00 2
1660 Under Eye And Lip Oil Roller Skinlax P 0 4.67 3
38144 Checked Thai Tote Bag Thổ Cẩm PIÊU - Brocade Decor P 0 4.00 1
6124 Peanut Butter, Refined Peanut Butter, Natural Peanut Butter, Sugar-Free Peanut Butter, Healthy Snack Happi Oha P 0 4.89 9
3745 Handmade Crochet Spiderman, Mini Spider Keychain, Spiderman Stuffed Animal, Handmade Woolen Spiderman, Spiderman Toy ACI HOME P 0 5.00 1
20944 Scented Candle With Message Flora Collab P 0 5.00 1
5230 Saola Lip Balm, All-Natural Moisture for Soft, Kissable Lips, Perfect Gift for Women, Natural Lip Balm, Moisturizing Lip Balm SAOLA P 0 5.00 4
3886 Red Velvethandmade High Heels, 7cm, Velvet High Heels For Women, Handmade Velvet Shoes, Sharp Red Velvet Heels Hoa Tiến Brocade P 0 0
296 Natural Crystals Macrame Bracelet Crystals Macrame P 0 5.00 1
20932 Mixed Flavor Superfood Kombucha Lady kombucha P 0 5.00 5
40154 Minimal Artistic Mini Cricket Lighter, Compact Design, Impressive Style, Sharp Printed Image, Convenient Product XLand P 0 0
6529 Premium Dried Greasyback Shrimp, Ca Mau Dried Shrimp NaGi - Tôm khô Cà Mau P 0 5.00 1
3785 Fruit Embroidery Denim Fanny Pack From Old Jeans, Wide Compartment, Holds Many Items, Colorful Pattern, Eye-Catching And Adorable Accessory Renew Jeans P 0 4.17 6
2130 ORIGIN Magic Blend Coffee, Robusta, Arabica, Coffee Bean, K’ho Coffee, Speciality Coffee, Roasted Coffee, Caffeine, Coffee Lovers Belgo & Origin P 0 4.88 17
41232 "Ăn Ý" Party Board GameĂn Ý Party Board Game, Question Card Set, Drinking Game Questions, Group Game, Party Table Game, Multiplayer Board Game Ngũ Hành Games P 0 5.00 2
3601 Plain Red Scarf Thổ Cẩm PIÊU - Brocade Decor P 0 5.00 2
5205 Homalomena Balm, Natural Relief For Women, Natural Topical Balm, Natural Ingredients, Natural Pain Relief, Muscle Relaxation, Stress Relief, 11 gr SAOLA P 0 5.00 1
2462 Rainy Garden Scented Candle Iris Nguyen - Perfumery House P 0 4.25 4
40148 The Art 1 Collection, Cricket Lighter, Themed Lighter, Artwork, Fresh Style, Stylish Accessory, High Quality Product XLand P 0 5.00 3
2512 Pacific Pilsner Craft Beer Can, Mild Lime Flavor, Well-Brewed Beer, High-Quality Ingredients, Suitable For All Occasions East West Brewing & Dalat Cider P 0 4.75 4
2013 Verveine Perfume Saigon Elixir P 0 5.00 3
1437 Woodgrain Phone Cases, Natural Wood Material, Color-Fast, Premium Tpu Frame, Shockproof Phone Case, Environmentally Friendly Netta Phone Case P 0 5.00 2
37847 Pink Peony "Hoài" Ceramic Large Bowl, Vietnamese Ceramics, Household Items, Ceramic Bowl, Ceramic, Kitchenware, Handmade, Non-toxic, Decorations, Gift Ideas Tu Hú Ceramics P 0 5.00 16