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 (434) 
  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 
  256, 32

Query time 0.29820

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": 798,
              "filtered": 100,
              "attached_condition": "products_tag_categories.category_id <=> 434",
              "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
6129 Mixed Nut Raisins - Happi Oha Dried Seed Mix, Mixed Dietetic Nuts, Nutritious Dried Nuts, Dietetic Snacks Happi Oha P 0 5.00 1
5152 “Rain” Scented Candle OnaTree - Vietnamese Cosmetics P 0 5.00 2
834 Coffee Bean Bracelet VietArt P 0 5.00 4
47083 Personalized Leather Christmas Stockings, Made Of Genuine Cow Leather, Christmas Decorative Accessories, Christmas Tree Decoration, Personalized Gifts I AM Leather P 0 5.00 6
46749 Leather Passport Holder 02, Handmade Design, Genuine Cowhide Material, Various Colors, Practical Gift, Various Styles Freewill Leather P 0 0
5461 Lucky Mini Yacht Model L320.T1, Acrylic And Wood Stand HAHAWAVE P 0 5.00 1
41390 “Lộc Cà Lộc Cộc” Parcheesi Board Game, Card Game, Drinking Game Set, Game For Drinking Beer, Drinking Card Game Set SOWAT STATION P 0 5.00 1
35187 Summer Beach Bag With Leather Strap, Spacious Bag Shape, Impressive And Youthful Color Combination, Durable Bag For Long-Term Use Chu Du Bag P 0 5.00 2
5158 Garden Herbs Scented Candle OnaTree - Vietnamese Cosmetics P 0 5.00 2
1408 Coffee Filter & Cup Set, Fire Glaze Ceramics, Coffee Cup, Ceramic Cup, Skillful Techniques, High Quality, Decoration, Vietnamese Ceramics Gốm Đông Gia P 0 5.00 7
31626 Butterfly Pea Flower Tea, Vietnamese Herbal Tea, Herbal Tea, Rich In Vitamins, Relaxation, Organic Tea, Natural Ingredients, No Preservatives Just Viet P 0 5.00 9
40760 Anchovy First Press Fish Sauce 750ml, Premium Anchovy Sauce, Top-Quality Dipping Sauce, Specialty Gift, Gift For Colleagues Nước mắm Hoàng Gia P 0 5.00 4
19289 Pipa Ceramic Espresso Cup Set, Vietnamese Ceramics, Household Items, Ceramic, Rustic, Kitchenware, Handmade, Aesthetic, Non-toxic, Decorations, Gift Ideas Tu Hú Ceramics P 0 5.00 12
4247 I Have Been There Printed Greeting Cards/Postcards I HAVE BEEN THERE P 0 5.00 7
6141 Mixed Fruits Happi Oha P 0 5.00 2
41594 “Green” Scented Candle, Aromatherapy, Hand-poured Candle, Soy Wax, Ceramic Jar, Essential Oil, Peppermint, Lemongrass, Gift Ideas Tu Hú Ceramics P 0 5.00 17
6136 Natural Mix With Nuts & Seeds, Premium Mixed Nuts, Mixed Nutritious Seeds, 5-Type Mixed Nuts Bag, Nutritious Breakfast Seeds Happi Oha P 0 5.00 2
1747 Herbal Massage Ball, Pain Relief Compress Ball, Herbal Body Massage Ball, Microwave Heating, Multi-Purpose Compress Ball Hapaku P 0 4.80 5
5998 Iris, 25 x 25 Paper Flower Painting, Paper Flower Frame, Interior Decoration, Handmade Gifts, Personalized Gifts Maypaperflower P 0 5.00 15
2497 Lavender Scented Candles Decorated With Lavender Dried Flowers, Soy Wax Candles, Home Decor, Stress Relief, Gift Suggestions Calla Floral P 0 5.00 1
5154 “Sunlight” Scented Candle OnaTree - Vietnamese Cosmetics P 0 5.00 2
6131 Almonds Happi Oha P 0 4.67 3
6147 Roasted Brown Rice, Sugar-Free Snack, Weight Loss Supporting Snack, Good For Diabetics, Nutritious Food Happi Oha P 0 5.00 1
5476 Lucky Sailboat Model C300.T8 With Acrylic Stand & Art Silk Sail HAHAWAVE P 0 5.00 1
3223 Green Floral Bottle Holder, Vibrant Color Tone, Versatile Bag, Youthful Design, Durable Material, Long-Lasting Use TAN Cupholder P 0 5.00 1
6537 Prawn Crackers, Cà Mau Specialty, No Bleaching Agents, 50% Fresh Shrimp, Crackers For Salad, Crispy And Fragrant Snack NaGi - Tôm khô Cà Mau P 0 5.00 1
3712 Scented Bubble Candle & Wax Gift Box Calla Floral P 0 4.83 6
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
295 7 Raw Chakra Crystal Bracelet Crystals Macrame P 0 5.00 4
1764 Henna Bamboo Ballpoint Pen, Unique Henna Pattern, Natural Bamboo Material, Chemical-Free, Customizable Design Nhà An Lành P 0 5.00 2
1875 1-Strap Colorful Canvas Bottle Holder, Geometric Pattern, Versatile Bag, Sturdy Canvas Material, Highly Practical TAN Cupholder P 0 5.00 3
2233 Mandala Bamboo Notebook (With Engraving Pen & Gift Box), Elegant Mandala Pattern, Quality Paper Material, High Durability, Gift Suggestions Nhà An Lành P 0 5.00 2