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 (
    15857, 14516, 16315, 16457, 17025, 15380, 
    12887, 16945, 16861, 16736, 15852, 
    12882, 12890, 16789, 14569, 12884, 
    16088
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.04192

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": 68,
            "filtered": 100,
            "index_condition": "variation_group_products.group_id in (15857,14516,16315,16457,17025,15380,12887,16945,16861,16736,15852,12882,12890,16789,14569,12884,16088)"
          }
        },
        {
          "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
18712 999 Vertikalna Quilted Wallet Tomato Handmade 12882 V 18710 0
18710 999 Vertikalna Quilted Wallet Tomato Handmade 12882 P 0 0
40751 999 Vertikalna Quilted Wallet Tomato Handmade 12882 V 18710 0
40750 999 Vertikalna Quilted Wallet Tomato Handmade 12882 V 18710 0
18714 999 Vara Ramis Sakura Purse, Unique And Exquisite Design, Elegant And Sophisticated Style, Ideal Gift For Ladies Tomato Handmade 12884 V 3984 0
3984 999 Vara Ramis Sakura Purse, Unique And Exquisite Design, Elegant And Sophisticated Style, Ideal Gift For Ladies Tomato Handmade 12884 P 0 0
18723 999 Crossbody Hexagonal Quilting Bag Tomato Handmade 12887 V 3979 0
3979 999 Crossbody Hexagonal Quilting Bag Tomato Handmade 12887 P 0 0
18728 999 Travel Drawstring Bag, Made Of 100% Korean Cotton, Impressive Bikini Pattern, Suitable For Beach Trips Tomato Handmade 12890 V 3976 0
18727 999 Travel Drawstring Bag, Made Of 100% Korean Cotton, Impressive Bikini Pattern, Suitable For Beach Trips Tomato Handmade 12890 V 3976 0
3976 999 Travel Drawstring Bag, Made Of 100% Korean Cotton, Impressive Bikini Pattern, Suitable For Beach Trips Tomato Handmade 12890 P 0 0
25159 1997 Hemp Cork Pouch - Small Size, Compact Design, Natural Materials, Chemical-Free, Minimalist Design, Vibrant Colors Green Cat 14516 P 0 0
469 1993 Minimalist Knitted Shoulder Bag, Natural Fiber Material, Youthful Color Tone, Summer Accessory, Perfect For Beach Outings Ball Bee 14569 P 0 0
25543 1993 Minimalist Knitted Shoulder Bag, Natural Fiber Material, Youthful Color Tone, Summer Accessory, Perfect For Beach Outings Ball Bee 14569 V 469 0
25544 1993 Minimalist Knitted Shoulder Bag, Natural Fiber Material, Youthful Color Tone, Summer Accessory, Perfect For Beach Outings Ball Bee 14569 V 469 0
31884 999 Hana In Wild Sunflower Outfit, Hand-Drawn Fabric Bag, Naturally Dyed Fabric Material, Eye-catching Doll Patterns, Spacious Compartment Hana Mascot 15380 P 0 0
32012 999 Hana In Wild Sunflower Outfit, Hand-Drawn Fabric Bag, Naturally Dyed Fabric Material, Eye-catching Doll Patterns, Spacious Compartment Hana Mascot 15380 V 31884 0
36293 999 Mộc Leather Phone Bag, Compact Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15852 P 0 0
36679 999 Mộc Leather Phone Bag, Compact Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15852 V 36293 0
36680 999 Mộc Leather Phone Bag, Compact Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15852 V 36293 0
36681 999 Mộc Leather Phone Bag, Compact Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15852 V 36293 0
36682 999 Mộc Leather Phone Bag, Compact Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15852 V 36293 0
36683 999 Mộc Leather Phone Bag, Compact Design, Durable Cowhide, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15852 V 36293 0
36300 999 Bucket Bag From Pu Leather And Canvas Fabric, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15857 P 0 5.00 3
36695 999 Bucket Bag From Pu Leather And Canvas Fabric, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15857 V 36300 5.00 3
36696 999 Bucket Bag From Pu Leather And Canvas Fabric, Elegant Gift, Leather Accessories, Handmade Gifts, Personalized Gift Hoa handmade 15857 V 36300 5.00 3
38128 999 Rectangle Linen Bag Soft&another Home 16088 P 0 0
38306 999 Rectangle Linen Bag Soft&another Home 16088 V 38128 0
38307 999 Rectangle Linen Bag Soft&another Home 16088 V 38128 0
38308 999 Rectangle Linen Bag Soft&another Home 16088 V 38128 0
40598 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
40597 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
40527 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 P 0 5.00 1
40592 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
40593 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
40594 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
40595 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
40596 999 Lazy Lady Fabric Wallet, Envelope Design, Cute Color Palette, Featuring 3 Convenient Compartments. Subtle Patterns, Feminine Accessory Tomato Handmade 16315 V 40527 5.00 1
41230 999 4 Season Hand Embroidered Purse, Elaborate Hand-Embroidered Patterns, Convenient Multi-Compartment Design, Solid Stitching Jumie Handmade 16457 P 0 0
41242 999 4 Season Hand Embroidered Purse, Elaborate Hand-Embroidered Patterns, Convenient Multi-Compartment Design, Solid Stitching Jumie Handmade 16457 V 41230 0
41243 999 4 Season Hand Embroidered Purse, Elaborate Hand-Embroidered Patterns, Convenient Multi-Compartment Design, Solid Stitching Jumie Handmade 16457 V 41230 0
41244 999 4 Season Hand Embroidered Purse, Elaborate Hand-Embroidered Patterns, Convenient Multi-Compartment Design, Solid Stitching Jumie Handmade 16457 V 41230 0
44575 999 Vietnamese Brocade Tote Bag Giving Smile 16736 P 0 0
44593 999 Vietnamese Brocade Tote Bag Giving Smile 16736 V 44575 0
44594 999 Vietnamese Brocade Tote Bag Giving Smile 16736 V 44575 0
44595 999 Vietnamese Brocade Tote Bag Giving Smile 16736 V 44575 0
44881 999 Lovely Bow Crochet Bag, Handcrafted Crochet, Versatile Drawstring Design, Durable, Versatile Strap, Fashionable Style Gian hàng HMT 16789 P 0 0
45076 1 Lovely Bow Crochet Bag, Handcrafted Crochet, Versatile Drawstring Design, Durable, Versatile Strap, Fashionable Style Gian hàng HMT 16789 V 44881 0
45281 999 Karkar Leather Bag, Free Name Engraving, A Classic Style For The Modern Individual, Personalized Gifts KitART Leather 16861 P 0 5.00 15
45658 999 Karkar Leather Bag, Free Name Engraving, A Classic Style For The Modern Individual, Personalized Gifts KitART Leather 16861 V 45281 5.00 15
45659 999 Karkar Leather Bag, Free Name Engraving, A Classic Style For The Modern Individual, Personalized Gifts KitART Leather 16861 V 45281 5.00 15
45660 999 Karkar Leather Bag, Free Name Engraving, A Classic Style For The Modern Individual, Personalized Gifts KitART Leather 16861 V 45281 5.00 15
45661 999 Karkar Leather Bag, Free Name Engraving, A Classic Style For The Modern Individual, Personalized Gifts KitART Leather 16861 V 45281 5.00 15
49308 999 Mini Leather Wallet, Genuine Cowhide Material, Simple Design, Casual Style, Exquisite Craftsmanship, Compact Size Freewill Leather 16945 V 49309 0
46818 999 Mini Leather Wallet, Genuine Cowhide Material, Simple Design, Casual Style, Exquisite Craftsmanship, Compact Size Freewill Leather 16945 V 49309 0
49309 999 Mini Leather Wallet, Genuine Cowhide Material, Simple Design, Casual Style, Exquisite Craftsmanship, Compact Size Freewill Leather 16945 P 0 0
47261 999 Hemp Cork Bag With Brocade Patterns, Vietnamese Handmade Bag, Simple And Youthful Design, Environmentally Friendly Green Cat 17025 P 0 0
47303 999 Hemp Cork Bag With Brocade Patterns, Vietnamese Handmade Bag, Simple And Youthful Design, Environmentally Friendly Green Cat 17025 V 47261 0
47305 999 Hemp Cork Bag With Brocade Patterns, Vietnamese Handmade Bag, Simple And Youthful Design, Environmentally Friendly Green Cat 17025 V 47261 0
47304 999 Hemp Cork Bag With Brocade Patterns, Vietnamese Handmade Bag, Simple And Youthful Design, Environmentally Friendly Green Cat 17025 V 47261 0