SELECT 
  SQL_CALC_FOUND_ROWS products.product_id, 
  products.amount, 
  descr1.product as product, 
  companies.company as company_name, 
  variation_group_products.group_id AS variation_group_id, 
  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_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 
  INNER JOIN cscart_product_variation_group_products AS variation_group_products ON variation_group_products.product_id = products.product_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 
WHERE 
  1 
  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 variation_group_products.group_id IN (
    12744, 16735, 12733, 15626, 15856, 12883, 
    16673, 13643, 16728, 16091, 12208, 
    16864, 16335
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.04588

JSON explain

{
  "query_block": {
    "select_id": 1,
    "temporary_table": {
      "nested_loop": [
        {
          "table": {
            "table_name": "variation_group_products",
            "access_type": "range",
            "possible_keys": ["PRIMARY", "idx_group_id"],
            "key": "idx_group_id",
            "key_length": "3",
            "used_key_parts": ["group_id"],
            "rows": 52,
            "filtered": 100,
            "index_condition": "variation_group_products.group_id in (12744,16735,12733,15626,15856,12883,16673,13643,16728,16091,12208,16864,16335)"
          }
        },
        {
          "table": {
            "table_name": "products",
            "access_type": "eq_ref",
            "possible_keys": ["PRIMARY", "status"],
            "key": "PRIMARY",
            "key_length": "3",
            "used_key_parts": ["product_id"],
            "ref": ["dev_db.variation_group_products.product_id"],
            "rows": 1,
            "filtered": 51.89157104,
            "attached_condition": "(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.variation_group_products.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.variation_group_products.product_id", "const"],
            "rows": 1,
            "filtered": 100
          }
        },
        {
          "table": {
            "table_name": "products_categories",
            "access_type": "ref",
            "possible_keys": ["PRIMARY", "pt"],
            "key": "pt",
            "key_length": "3",
            "used_key_parts": ["product_id"],
            "ref": ["dev_db.variation_group_products.product_id"],
            "rows": 1,
            "filtered": 100
          }
        },
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "eq_ref",
            "possible_keys": ["PRIMARY", "p_category_id"],
            "key": "PRIMARY",
            "key_length": "3",
            "used_key_parts": ["category_id"],
            "ref": ["dev_db.products_categories.category_id"],
            "rows": 1,
            "filtered": 100,
            "using_index": true
          }
        }
      ]
    }
  }
}

Result

product_id amount product company_name variation_group_id product_type parent_product_id average_rating product_reviews_count
14979 999 Crossbody Embroidered Linen Tote Bag With Wooden Buttons Tạp Hóa Ú 12208 V 6471 0
6471 998 Crossbody Embroidered Linen Tote Bag With Wooden Buttons Tạp Hóa Ú 12208 P 0 0
18285 20 Hand Painted Wax Fabric Purse, Medium Size, TCV38 TRÚC LÂM HANDMADE 12733 V 4385 0
18284 20 Hand Painted Wax Fabric Purse, Medium Size, TCV38 TRÚC LÂM HANDMADE 12733 V 4385 0
4385 20 Hand Painted Wax Fabric Purse, Medium Size, TCV38 TRÚC LÂM HANDMADE 12733 P 0 0
18307 20 Brocade Shell Purse, Small Size, H'Mong Batik TCV35 TRÚC LÂM HANDMADE 12744 V 4374 0
18306 20 Brocade Shell Purse, Small Size, H'Mong Batik TCV35 TRÚC LÂM HANDMADE 12744 V 4374 0
4374 20 Brocade Shell Purse, Small Size, H'Mong Batik TCV35 TRÚC LÂM HANDMADE 12744 P 0 0
18713 999 Vara Ramis Sarus Crane Purse, Multi-Compartment Design, Luxurious And Noble Style, Brass Strap, Suitable For Hand-Carry Or Cross-Body Wear Tomato Handmade 12883 V 3985 0
3985 999 Vara Ramis Sarus Crane Purse, Multi-Compartment Design, Luxurious And Noble Style, Brass Strap, Suitable For Hand-Carry Or Cross-Body Wear Tomato Handmade 12883 P 0 0
22020 999 Muse Leather Shoulder Bag, Crocodile Skin Texture, High-Quality Material, Minimalist and Stylish Design, High Durability, Youthful Style Hoi An Soul 13643 P 0 5.00 1
22019 9 Muse Leather Shoulder Bag, Crocodile Skin Texture, High-Quality Material, Minimalist and Stylish Design, High Durability, Youthful Style Hoi An Soul 13643 V 22020 5.00 1
33835 1 Hand-Embroidered Linen Fabric Wallet, Adorable Hand-Embroidered Pattern, 3 Convenient Compartments, Lovely Handmade Accessory Nhà của Ran - Handmade&Embroidery 15626 P 0 0
36299 999 Shopper Leather Bag, Round Bottom Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15856 P 0 0
36694 999 Shopper Leather Bag, Round Bottom Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15856 V 36299 0
38313 999 Dark Gray “Thuần” Linen Bread Bag, Preserving Dry Food, Eye-catching Design, Elegant Accent for Kitchen Space Soft&another Home 16091 V 38131 0
38131 999 Dark Gray “Thuần” Linen Bread Bag, Preserving Dry Food, Eye-catching Design, Elegant Accent for Kitchen Space Soft&another Home 16091 P 0 0
40709 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
40708 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
40692 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 P 0 0
40711 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
40706 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
40707 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
40705 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
40710 999 Chessboard Shoulder Bag, Quilting Artistry, Intricate Patchwork Technique, Innovative Design, Soft Cotton Material Tomato Handmade 16335 V 40692 0
43864 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43653 998 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 P 0 0
43865 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43866 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43867 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43868 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43869 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43870 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43871 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
43872 999 Apron Bag, Fabric Bottle Holder, Convenient For Daily Use, Durable Khaki Fabric, With Drawstrings On Both Sides TAN Cupholder 16673 V 43653 0
44524 999 “Mi Goi” Crochet Bag, Simple Design, Youthful Style, Handcrafted Yarn Bag, Durable Len Cotton Material, Neutral Colors Bông Crochet 16728 V 44519 0
44523 999 “Mi Goi” Crochet Bag, Simple Design, Youthful Style, Handcrafted Yarn Bag, Durable Len Cotton Material, Neutral Colors Bông Crochet 16728 V 44519 0
44519 999 “Mi Goi” Crochet Bag, Simple Design, Youthful Style, Handcrafted Yarn Bag, Durable Len Cotton Material, Neutral Colors Bông Crochet 16728 P 0 0
44573 999 White Clutch With Embroidered Petals, Fashionable Clutch Design, Durable Textilene Material, Embroidered Flower Wings Pattern Giving Smile 16735 P 0 0
44592 999 White Clutch With Embroidered Petals, Fashionable Clutch Design, Durable Textilene Material, Embroidered Flower Wings Pattern Giving Smile 16735 V 44573 0
45284 999 Daily Leather Tote Bag, Soft Material, Durable, Elegant Design, Trendy Style, Versatile For Many Outfits KitART Leather 16864 P 0 5.00 6
45669 999 Daily Leather Tote Bag, Soft Material, Durable, Elegant Design, Trendy Style, Versatile For Many Outfits KitART Leather 16864 V 45284 5.00 6