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 (
    16551, 13536, 16440, 15620, 12431, 14032, 
    15522, 13783, 16664, 12665, 12666, 
    15334, 13332
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.01730

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": 56,
            "filtered": 100,
            "index_condition": "variation_group_products.group_id in (16551,13536,16440,15620,12431,14032,15522,13783,16664,12665,12666,15334,13332)"
          }
        },
        {
          "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
16385 999 Krem Scented Soy Candle, 175g Glass Jar Chia Kandles 12431 V 5827 0
16384 999 Krem Scented Soy Candle, 175g Glass Jar Chia Kandles 12431 V 5827 0
16383 999 Krem Scented Soy Candle, 175g Glass Jar Chia Kandles 12431 V 5827 0
5827 999 Krem Scented Soy Candle, 175g Glass Jar Chia Kandles 12431 P 0 0
18124 999 Yellow Silk Scrunchie, Naturally Dyed, Shiny Golden Color, Dyed From Osmanthus Trees, Colorfast, Wrist Accessory Giang's Style 12665 V 4801 0
4801 999 Yellow Silk Scrunchie, Naturally Dyed, Shiny Golden Color, Dyed From Osmanthus Trees, Colorfast, Wrist Accessory Giang's Style 12665 P 0 0
18126 999 Earth Color Silk Scrunchie, Naturally Dyed, Wrist Accessory, Simple Design, Feminine Style, Vintage Vibe Giang's Style 12666 V 4799 5.00 1
18125 999 Earth Color Silk Scrunchie, Naturally Dyed, Wrist Accessory, Simple Design, Feminine Style, Vintage Vibe Giang's Style 12666 V 4799 5.00 1
4799 999 Earth Color Silk Scrunchie, Naturally Dyed, Wrist Accessory, Simple Design, Feminine Style, Vintage Vibe Giang's Style 12666 P 0 5.00 1
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
21494 999 “Deforest Symphony” Handmade Scented Soy Candle Tin Chia Kandles 13536 V 2301 0
21493 999 “Deforest Symphony” Handmade Scented Soy Candle Tin Chia Kandles 13536 V 2301 0
21492 999 “Deforest Symphony” Handmade Scented Soy Candle Tin Chia Kandles 13536 V 2301 0
21491 999 “Deforest Symphony” Handmade Scented Soy Candle Tin Chia Kandles 13536 V 2301 0
2301 999 “Deforest Symphony” Handmade Scented Soy Candle Tin Chia Kandles 13536 P 0 0
22529 100 Brocade Pen Pouches Hoa Tiến Brocade 13783 V 1841 0
22528 100 Brocade Pen Pouches Hoa Tiến Brocade 13783 V 1841 0
22527 100 Brocade Pen Pouches Hoa Tiến Brocade 13783 V 1841 0
1841 99 Brocade Pen Pouches Hoa Tiến Brocade 13783 P 0 0
1357 1998 Edelweiss Drawstring Bag, Youthful Checkered Fabric Pattern, Unique And Eye-Catching Design, Vibrant Colors, Adjustable Shoulder Strap Gemmyn's Adventure 14032 P 0 0
23375 1998 Edelweiss Drawstring Bag, Youthful Checkered Fabric Pattern, Unique And Eye-Catching Design, Vibrant Colors, Adjustable Shoulder Strap Gemmyn's Adventure 14032 V 1357 0
23376 1998 Edelweiss Drawstring Bag, Youthful Checkered Fabric Pattern, Unique And Eye-Catching Design, Vibrant Colors, Adjustable Shoulder Strap Gemmyn's Adventure 14032 V 1357 0
23377 1998 Edelweiss Drawstring Bag, Youthful Checkered Fabric Pattern, Unique And Eye-Catching Design, Vibrant Colors, Adjustable Shoulder Strap Gemmyn's Adventure 14032 V 1357 0
23378 1998 Edelweiss Drawstring Bag, Youthful Checkered Fabric Pattern, Unique And Eye-Catching Design, Vibrant Colors, Adjustable Shoulder Strap Gemmyn's Adventure 14032 V 1357 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
33081 999 Flowers In Garden Necklace LILI'S SUMMER BEADS 15522 P 0 0
33083 999 Flowers In Garden Necklace LILI'S SUMMER BEADS 15522 V 33081 0
33084 999 Flowers In Garden Necklace LILI'S SUMMER BEADS 15522 V 33081 0
33809 998 Handmade Canvas Fabric Wallet, Elegant Floral Pattern, 3 Convenient Compartments, Compact Design, Holding Money Nhà của Ran - Handmade&Embroidery 15620 P 0 0
33810 999 Handmade Canvas Fabric Wallet, Elegant Floral Pattern, 3 Convenient Compartments, Compact Design, Holding Money Nhà của Ran - Handmade&Embroidery 15620 V 33809 0
33812 998 Handmade Canvas Fabric Wallet, Elegant Floral Pattern, 3 Convenient Compartments, Compact Design, Holding Money Nhà của Ran - Handmade&Embroidery 15620 V 33809 0
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
42209 999 Tear Drop Marble Clay Earrings, Diverse and Vibrant Colors, Adding Delicate Touch to Outfits, Lightweight and Comfortable to Wear DHDHbeauty 16551 V 42161 5.00 1
42208 999 Tear Drop Marble Clay Earrings, Diverse and Vibrant Colors, Adding Delicate Touch to Outfits, Lightweight and Comfortable to Wear DHDHbeauty 16551 V 42161 5.00 1
42207 999 Tear Drop Marble Clay Earrings, Diverse and Vibrant Colors, Adding Delicate Touch to Outfits, Lightweight and Comfortable to Wear DHDHbeauty 16551 V 42161 5.00 1
42161 999 Tear Drop Marble Clay Earrings, Diverse and Vibrant Colors, Adding Delicate Touch to Outfits, Lightweight and Comfortable to Wear DHDHbeauty 16551 P 0 5.00 1
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