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 (
    99, 141, 142, 143, 144, 145, 146, 149, 
    150, 151, 152, 153
  ) 
  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 
  448, 32

Query time 0.17231

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": 12,
              "filtered": 100,
              "attached_condition": "cscart_categories.category_id in (99,141,142,143,144,145,146,149,150,151,152,153)",
              "using_index": true
            }
          },
          {
            "table": {
              "table_name": "products_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": 359,
              "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_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_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
4287 Medium Arch Earrings In Silver Color, Made Of Fired Clay, Gold-Plated Stainless Steel Hooks, High Durability, Gift For The Girls CLAY BY POLLY P 0 0
41366 Flowers Resin & Wooden Hair Stick, Beautiful Combination of Dried Flowers and Wood, Feminine Hair Accessory, Handcrafted Product Trâm cài tóc BHK Việt Nam P 0 5.00 1
35690 Mother Of Pearl Inlay Earrings, Seductive Accent, Enhances Facial Features, Modern Design, Impressive Jewelry Accessory EMOI Jewelry P 0 5.00 1
42187 Long Marble Clay Earrings, Diverse Colors, Creating a Sense of Elegance and Slimness to the Face, Exquisitely Handcrafted Earrings DHDHbeauty P 0 5.00 1
794 Earth Earrings, Simple Yet Unique Design, Resembling A Miniature Globe, Premium Jewelry, Impressive Accessory, Attractive EMOI Jewelry P 0
35475 Laos Forest Agarwood Mala Nico studio P 0
42170 Mix Beads Circle Clay Earrings, Vibrant Colors, Unique and Impressive Design, Edgy Style, Eye-catching, Unique Jewelry Accessory DHDHbeauty P 0 5.00 1
48851 9-carp Gathering Hand-drawn Leather Lighter, Art Lighters, Leather Accessories, Handmade Gifts, Aesthetic, Unique Gift, Personalized Gifts ĐỎ P 0
41381 Wooden And Bead Hoop Earrings, Delicate Earring Shape, Versatile for Many Styles, Elegant Design, Fashionable Clothing Accent Trâm cài tóc BHK Việt Nam P 0
42182 Flower Beads Clay Earrings, Elegant and Skillful Design, Creative and Unique Patterns, Striking Colors, Edgy Style DHDHbeauty P 0 5.00 1
36522 Small-sized Satin Headband 25.Sugaryyy P 0 5.00 1
6481 Oval-Shaped Pendant Necklace With Animal Hand-Embroidery, Meticulous Handmade Embroidery, Classic Style, Reminiscent Of Ancient Royalty Tạp Hóa Ú P 0 0
37292 White Flower Wooden Hair Stick, Soft and Graceful Lines, Exquisite Attention to Detail, Rustic Natural Wood Grain Trâm cài tóc BHK Việt Nam P 0
5599 The Magnet Clay Earrings, Modeled After The Magnet Shape, Fired Clay Material, Unique And Eye-Catching Design Evian Studio P 0 0
42185 4-leaf Clover Clay Earrings, Fresh Green Color, Slim and Long Earring Shape, Striking Design, Prominent Accent for Outfits DHDHbeauty P 0 5.00 1
24715 “Lilian” Round Mixed Triangle Clay Earrings, Featuring Sweet And Elegant Pastel Tones, With A Playful And Personal Style Evian Studio P 0 0
5592 Sahara Clay Earrings, Elegant Beauty, Elegant Color, Wave Pattern, Small Round Earring Shape, Highlights Facial Features Evian Studio P 0
42168 Combo Clay Earrings, Various Designs and Colors, Suitable for Different Face Shapes, Accentuating Facial Features, Rustic Material DHDHbeauty P 0 5.00 1
44940 “Clean” Ring, Glazed Ceramic Material, Natural Gradient Color, Minimalist Design, Intimate And Rustic Beauty Nombre P 0 0
42186 Teardrop Clay Earrings, Feminine and Sweet Style, Highlighted Metal Edge, High Durability, Easy Maintenance, Safe Material DHDHbeauty P 0 5.00 1
27078 Dark Brown Vachetta Leather Handcrafted Watch Strap, Natural Vein Pattern, Elegant And Mature Style, A Gift For Men ELEGENT P 0 0
27076 Teal Shark Skin Leather Handcrafted Watch Strap, Exquisite Beauty, Mysterious And Elegant Style, Sophisticated And Masculine Design ELEGENT P 0 0
985 Love Triangle Abalone Shell Earrings, Long Earring Shape, New And Unique Design, Made Of 925 Silver And Abalone Shell, Luxurious Style EMOI Jewelry P 0 5.00 1
45601 Dreamcore Necklace With Glass Pendant, Choker Style, Light Blue and Pink Tones, Sweetheart Pendant, Handmade Necklace Beadoof P 0
41402 Lotus Silver Earrings, High-Quality 925 Silver, Iconic Vietnamese Symbol, Exquisite Craftsmanship, Soft Sophistication Silver Soul Studio- Handmade in Vietnam P 0 5.00 1
37281 Petal-Shaped Wooden Hair Stick, Intricately Carved and Polished, Soft Lines, Exquisite Hair Accessory, Captivating Every Glance Trâm cài tóc BHK Việt Nam P 0
42163 Green Leaf Marble Clay Earrings, Striking Jade Green Color, Sophisticated Design, Environmentally Friendly Material, High Durability DHDHbeauty P 0 5.00 1
42162 White Leaf Marble Clay Earrings, Pure White Color, Noble and Luxurious Earrings, Suitable for Various Outfits, Lovely Gift DHDHbeauty P 0 5.00 1
5596 Circle Of Life Clay Earrings, Each Color Segment Is Pieced Together With Shimmering Metallic Edges, Meaningful Gift For Friends Evian Studio P 0 0
42181 Boho Tree Vignette Clay Earrings, Striking Patterns, Safe Material, Non-Irritating, Prominent Highlight for the Face, Generous Beauty DHDHbeauty P 0 5.00 1
44599 Vintage Linen Headband With Embroidery Flowers, Intricately Hand-Embroidered Patterns, Sweet and Romantic Style, Gentle Beauty Gian hàng HMT P 0 0
41377 Traditional Wooden Hair Stick, Simple Design, Minimalist Style, Natural Wood Color and Grain, Suitable for Various Outfits Trâm cài tóc BHK Việt Nam P 0