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 (
    12659, 13777, 13443, 13679, 14829, 16862, 
    16384, 13680, 16440, 16664, 15334, 
    16487, 13332, 13684, 12888
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.02715

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": 67,
            "filtered": 100,
            "index_condition": "variation_group_products.group_id in (12659,13777,13443,13679,14829,16862,16384,13680,16440,16664,15334,16487,13332,13684,12888)"
          }
        },
        {
          "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
18062 999 Orange Velvet Handmade Low Heels, 3cm, Closed-Toe Velvet Shoes, 3cm High Heels, Luxurious Velvet Shoes, Gift For A Lady Hoa Tiến Brocade 12659 V 4812 0
18058 999 Orange Velvet Handmade Low Heels, 3cm, Closed-Toe Velvet Shoes, 3cm High Heels, Luxurious Velvet Shoes, Gift For A Lady Hoa Tiến Brocade 12659 V 4812 0
18057 999 Orange Velvet Handmade Low Heels, 3cm, Closed-Toe Velvet Shoes, 3cm High Heels, Luxurious Velvet Shoes, Gift For A Lady Hoa Tiến Brocade 12659 V 4812 0
18056 999 Orange Velvet Handmade Low Heels, 3cm, Closed-Toe Velvet Shoes, 3cm High Heels, Luxurious Velvet Shoes, Gift For A Lady Hoa Tiến Brocade 12659 V 4812 0
18055 999 Orange Velvet Handmade Low Heels, 3cm, Closed-Toe Velvet Shoes, 3cm High Heels, Luxurious Velvet Shoes, Gift For A Lady Hoa Tiến Brocade 12659 V 4812 0
4812 999 Orange Velvet Handmade Low Heels, 3cm, Closed-Toe Velvet Shoes, 3cm High Heels, Luxurious Velvet Shoes, Gift For A Lady Hoa Tiến Brocade 12659 P 0 0
3978 999 Hexagonal Quilting Clutch Tomato Handmade 12888 P 0 0
38779 999 Hexagonal Quilting Clutch Tomato Handmade 12888 V 3978 0
20799 999 Hand-Woven Long Silk Necklace With Wooden Beads, Wood Beads Wrapped In Soft Silk, Epitome Of Handmade Artistry, Gentle And Noble Style ÓNG heartmadeinvietnam 13332 V 2640 5.00 3
20798 999 Hand-Woven Long Silk Necklace With Wooden Beads, Wood Beads Wrapped In Soft Silk, Epitome Of Handmade Artistry, Gentle And Noble Style ÓNG heartmadeinvietnam 13332 V 2640 5.00 3
20797 999 Hand-Woven Long Silk Necklace With Wooden Beads, Wood Beads Wrapped In Soft Silk, Epitome Of Handmade Artistry, Gentle And Noble Style ÓNG heartmadeinvietnam 13332 V 2640 5.00 3
2640 999 Hand-Woven Long Silk Necklace With Wooden Beads, Wood Beads Wrapped In Soft Silk, Epitome Of Handmade Artistry, Gentle And Noble Style ÓNG heartmadeinvietnam 13332 P 0 5.00 3
21078 6 Witchy House Scented Candle Iris Nguyen - Perfumery House 13443 V 2464 5.00 4
2464 6 Witchy House Scented Candle Iris Nguyen - Perfumery House 13443 P 0 5.00 4
22108 999 Jasmine Absolute Perfume, Handmade Perfume, Jasmine Scent, Sweet And Pleasant Fragrance, Gift For Lovers Saigon Elixir 13679 V 1996 0
22107 999 Jasmine Absolute Perfume, Handmade Perfume, Jasmine Scent, Sweet And Pleasant Fragrance, Gift For Lovers Saigon Elixir 13679 V 1996 0
1996 999 Jasmine Absolute Perfume, Handmade Perfume, Jasmine Scent, Sweet And Pleasant Fragrance, Gift For Lovers Saigon Elixir 13679 P 0 0
22110 999 Imperial Cardamom Perfume, Handmade Perfume, Sweet And Seductive Fragrance, Compact Size, Delicate Gift Saigon Elixir 13680 V 1995 0
22109 999 Imperial Cardamom Perfume, Handmade Perfume, Sweet And Seductive Fragrance, Compact Size, Delicate Gift Saigon Elixir 13680 V 1995 0
1995 999 Imperial Cardamom Perfume, Handmade Perfume, Sweet And Seductive Fragrance, Compact Size, Delicate Gift Saigon Elixir 13680 P 0 0
22118 999 Emperor Extrait Perfume Saigon Elixir 13684 V 1991 0
22117 999 Emperor Extrait Perfume Saigon Elixir 13684 V 1991 0
1991 999 Emperor Extrait Perfume Saigon Elixir 13684 P 0 0
22512 100 Silk Brocade Scarves Hoa Tiến Brocade 13777 V 1852 0
22511 100 Silk Brocade Scarves Hoa Tiến Brocade 13777 V 1852 0
22510 99 Silk Brocade Scarves Hoa Tiến Brocade 13777 V 1852 0
1852 100 Silk Brocade Scarves Hoa Tiến Brocade 13777 P 0 0
26668 999 Vegetable Tanned Leather 2-in-1 Wallet With Notepad, Various Colors And Leather Material thanhsimone 14829 P 2251 0
26669 999 Vegetable Tanned Leather 2-in-1 Wallet With Notepad, Various Colors And Leather Material thanhsimone 14829 P 2251 0
2251 999 Vegetable Tanned Leather 2-in-1 Wallet With Notepad, Various Colors And Leather Material thanhsimone 14829 P 0 0
31741 999 Macrame Net Bag, Vintage-inspired Design, Light and Feminine Style, Simple Design, Beautiful Beach Accessory MIDUME 15334 P 0 0
31764 999 Macrame Net Bag, Vintage-inspired Design, Light and Feminine Style, Simple Design, Beautiful Beach Accessory MIDUME 15334 V 31741 0
31765 999 Macrame Net Bag, Vintage-inspired Design, Light and Feminine Style, Simple Design, Beautiful Beach Accessory MIDUME 15334 V 31741 0
31766 999 Macrame Net Bag, Vintage-inspired Design, Light and Feminine Style, Simple Design, Beautiful Beach Accessory MIDUME 15334 V 31741 0
31767 999 Macrame Net Bag, Vintage-inspired Design, Light and Feminine Style, Simple Design, Beautiful Beach Accessory MIDUME 15334 V 31741 0
31771 999 Macrame Net Bag, Vintage-inspired Design, Light and Feminine Style, Simple Design, Beautiful Beach Accessory MIDUME 15334 V 31741 0
40929 999 Gift Box Of Scented Candle In Ceramic Jar OnaTree - Vietnamese Cosmetics 16384 P 0 5.00 7
40962 999 Gift Box Of Scented Candle In Ceramic Jar OnaTree - Vietnamese Cosmetics 16384 V 40929 5.00 7
40963 999 Gift Box Of Scented Candle In Ceramic Jar OnaTree - Vietnamese Cosmetics 16384 V 40929 5.00 7
40964 999 Gift Box Of Scented Candle In Ceramic Jar OnaTree - Vietnamese Cosmetics 16384 V 40929 5.00 7
42348 999 Thai - Bauhinia And Fairies Silk Scarf, Embroidered Large Flower Silk Scarf, Green Silk Scarf, Designer Scarf, Gift For Relatives Folksight 16440 V 41138 5.00 3
41138 999 Thai - Bauhinia And Fairies Silk Scarf, Embroidered Large Flower Silk Scarf, Green Silk Scarf, Designer Scarf, Gift For Relatives Folksight 16440 P 0 5.00 3
41139 998 Thai - Bauhinia And Fairies Silk Scarf, Embroidered Large Flower Silk Scarf, Green Silk Scarf, Designer Scarf, Gift For Relatives Folksight 16440 V 41138 5.00 3
41427 999 X’MAS 45cm Square Silk Scarf, Festive Elegance, Hair Accessory, Gift for Her, Stylish Seasonal Accent, Women's Fashion Highlight MsKÉN 16487 P 0 5.00 16
41472 999 X’MAS 45cm Square Silk Scarf, Festive Elegance, Hair Accessory, Gift for Her, Stylish Seasonal Accent, Women's Fashion Highlight MsKÉN 16487 V 41427 5.00 16
41473 999 X’MAS 45cm Square Silk Scarf, Festive Elegance, Hair Accessory, Gift for Her, Stylish Seasonal Accent, Women's Fashion Highlight MsKÉN 16487 V 41427 5.00 16
41474 999 X’MAS 45cm Square Silk Scarf, Festive Elegance, Hair Accessory, Gift for Her, Stylish Seasonal Accent, Women's Fashion Highlight MsKÉN 16487 V 41427 5.00 16
43651 999 Handmade Minerva Genuine Leather Cardholder, Minimalist Style, Genuine Leather, Premium Leather, Handmade Leather, Personalized Gift KitART Leather 16664 P 0 5.00 12
43806 999 Handmade Minerva Genuine Leather Cardholder, Minimalist Style, Genuine Leather, Premium Leather, Handmade Leather, Personalized Gift KitART Leather 16664 V 43651 5.00 12
43807 999 Handmade Minerva Genuine Leather Cardholder, Minimalist Style, Genuine Leather, Premium Leather, Handmade Leather, Personalized Gift KitART Leather 16664 V 43651 5.00 12
45282 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 P 0 5.00 9
45662 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 V 45282 5.00 9
45663 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 V 45282 5.00 9
45664 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 V 45282 5.00 9
45665 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 V 45282 5.00 9
45666 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 V 45282 5.00 9
45667 999 Zippymin Leather Wallet, 3 Small Compartments, Compact And Versatile, Premium Leather Material, Various Colors, A Lovely Gift For Ladies KitART Leather 16862 V 45282 5.00 9