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 (514) 
  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 
  768, 32

Query time 0.12835

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_tag_categories",
              "access_type": "ref",
              "possible_keys": ["PRIMARY", "pt"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["category_id"],
              "ref": ["const"],
              "rows": 1027,
              "filtered": 100,
              "attached_condition": "products_tag_categories.category_id <=> 514",
              "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
37884 Horse - Hooves In The Wind Silk Scarf, Colorful Silk Scarf, Slightly Elastic Silk Scarf, Bandana Scarf, Silk Hair Tie Folksight P 0 0
4297 Small Oval Earrings In Color Metallic Pink & Black, Slightly Contemporary Design, Unique And Eye-Catching Fashion Accessory CLAY BY POLLY P 0
44573 White Clutch With Embroidered Petals, Fashionable Clutch Design, Durable Textilene Material, Embroidered Flower Wings Pattern Giving Smile P 0 0
38556 Floral Crochet Tote Bag Nhà Mị P 0
5594 Textured Diamond Clay Earrings, Round Metal Clasp, Classic Black And White Tones, Charming And Luxurious Style Evian Studio P 0 0
41132 Orange Rabbit Silk Scarf, Cream-Colored Silk Scarf, Art-Designed Silk Scarf, Head Wrap Scarf, Fashionable Neck Scarf, Gift For Ladies Folksight P 0 0
47177 Death Sea Necklace, Beautiful Pearl Cross Pendant, Exquisite Seed Bead Technique, Y2K Style, Harmonious Colors Theo Jewelry P 0
44565 Whisper Floral Embroidery, Vertical Tote Bag Giving Smile P 0
44937 “Slender” Necklace, Ceramic Pendant, Unique Curved Shape, Quirky Accessory, A Gift For Unconventional Individuals Nombre P 0
33835 Hand-Embroidered Linen Fabric Wallet, Adorable Hand-Embroidered Pattern, 3 Convenient Compartments, Lovely Handmade Accessory Nhà của Ran - Handmade&Embroidery P 0 0
43665 Medium Round Earrings With Lacquered Pattern Bông tai handmade Đại Nghĩa - Huế P 0
41118 Secret Dream Silk Scarf, Soft Silk Scarf, Girl Patterned Scarf, Shoulder Wrap Silk Scarf, Scarf Tied As A Top Folksight P 0 0
41378 Wooden And Beads Earrings, Rustic Wood Material, Unique Statement Piece, Exquisite Handcrafted Detailing, Handmade Earrings Trâm cài tóc BHK Việt Nam P 0 0
40921 Tropical Watermelon Clay Earrings, Non-irritating Material, 18K Gold Plated Hooks, Cute Design, Summer Accessory CLAY BY POLLY P 0
32315 Stripe Carved Ceramic Mug, Pastel Color Glaze, Vietnamese Ceramics, Handcrafted Ceramic, Coffee Mug, Gift Ideas, Birthday Gift, Housewarming Gift Lina Pottery by Minh Tien Ceramic P 0 5.00 6
24713 “2 Tone Oval Donut” Clay Earrings, Large Round Design, Trendy And Contemporary Style, Stylish Two-Tone Design, High Durability Evian Studio P 0 0
37417 Mini Elephant Porcelain Figurine Style 1, Cute And Whimsical Mini Elephant-Shaped Ceramic Statue, Perfect For Decorating Study Or Work Desks Art by Hang P 0 0
43653 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder P 0 0
48676 Coffee Time Scented Candle, Wake Up Your Senses, Best Scented Candle For Focus And Productivity, Scented Candle Gifts, Gift Ideas THE MUSE P 0 5.00 3
45585 Stardust Necklace, Made of Freshwater Pearls and Natural Stones, Mysterious Colors, Daily Outfit Accent Beadoof P 0
28439 Peace Scented Candle With Cotton Wick CETA CANDLE P 0
32314 Flower Pattern Carved Ceramic Mug, Translucent Glaze, Vietnamese Ceramics, Handmade, Unique Gift, Gift Ideas, Birthday Gift, Housewarming Gift Lina Pottery by Minh Tien Ceramic P 0 5.00 6
44562 Flamboyant Embroidery, Horizontal Tote Bag Giving Smile P 0
33160 Plain Canvas Tote Bag MIDUME P 0
45575 Dried Flower Scented Candle ADORA P 0 0
44935 “Enchanted” Necklace, Herbal Leather Cord, Cute Seashell Pendant, Handmade Accessory, Vintage Style, Unique Design Nombre P 0
32709 Pure Necklace, Pink And White Color Tone, Gentle And Delicate Style, Purity Like Morning Dew, Cute And Elegant Design LILI'S SUMMER BEADS P 0
37414 Cat With Twisting Tail Porcelain Figurine, Cat-Shaped Ceramic Statue, Premium Glazed Ceramic, Decorative Piece For Bookshelves Art by Hang P 0 0
46153 Iris Handmade Pattern Cotton T-Shirt, Floral T-Shirt, 4-Way Stretch Cotton T-Shirt, White T-Shirt With Prints, Patterned T-Shirt WUWE P 0 0
6471 Crossbody Embroidered Linen Tote Bag With Wooden Buttons Tạp Hóa Ú P 0 0
46590 Lily Of The Valley Handmade Pattern Cotton T-Shirt, Flower Embroidered T-Shirt, Loose Sleeve Cotton T-Shirt, Black Patterned T-Shirt WUWE P 0 0
4286 Baby Arch Earrings In Pink & Green Swirl, Feminine And Delicate Design, Stainless Steel Gold-Plated Hooks CLAY BY POLLY P 0