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 (
    13251, 13682, 13601, 13467, 16433, 13672, 
    14255, 12623, 14256, 13933, 12484, 
    15895, 13687, 16438, 12252, 13150, 
    14386, 12702, 13688
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.02472

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": 65,
            "filtered": 100,
            "index_condition": "variation_group_products.group_id in (13251,13682,13601,13467,16433,13672,14255,12623,14256,13933,12484,15895,13687,16438,12252,13150,14386,12702,13688)"
          }
        },
        {
          "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
15235 999 Square Canvas Tote Bag Less Than Three 12252 P 0 5.00 1
16530 999 The Ceramics Clay Earrings, Characteristic White Background Of Thanh Hoa Porcelain, Ladylike Style, Luxurious And Noble Evian Studio 12484 V 5598 5.00 1
5598 999 The Ceramics Clay Earrings, Characteristic White Background Of Thanh Hoa Porcelain, Ladylike Style, Luxurious And Noble Evian Studio 12484 P 0 5.00 1
17849 999 Set Of 3 Pairs Of Recycled Socks - The Colorful, Unisex Socks, Recycled Fiber Socks, High-Cut Socks, Sweat-Absorbing Socks Remarkable - Sản phẩm chuyên về Tái Chế 12623 V 4938 5.00 2
4938 997 Set Of 3 Pairs Of Recycled Socks - The Colorful, Unisex Socks, Recycled Fiber Socks, High-Cut Socks, Sweat-Absorbing Socks Remarkable - Sản phẩm chuyên về Tái Chế 12623 P 0 5.00 2
18223 999 Birthday & Encouragement Greeting Card, Meaningful Card, Gift For Beloved Ones, Artistic Print OHQUAO 12702 V 4505 5.00 22
18222 999 Birthday & Encouragement Greeting Card, Meaningful Card, Gift For Beloved Ones, Artistic Print OHQUAO 12702 V 4505 5.00 22
4505 999 Birthday & Encouragement Greeting Card, Meaningful Card, Gift For Beloved Ones, Artistic Print OHQUAO 12702 P 0 5.00 22
19586 999 Peppermint Handmade Scented Candle, Soy Wax Candle, Natural Essential Oil Candle, Scented Candle Gift Limart - Zero waste 13150 V 3198 5.00 4
3198 999 Peppermint Handmade Scented Candle, Soy Wax Candle, Natural Essential Oil Candle, Scented Candle Gift Limart - Zero waste 13150 P 0 5.00 4
20589 999 Ceramic Beads Bracelet With Multi-Layered Black Thread I LOVE HANDMADE 13251 V 2953 0
2953 999 Ceramic Beads Bracelet With Multi-Layered Black Thread I LOVE HANDMADE 13251 P 0 0
21118 12 Eva Perfume Iris Nguyen - Perfumery House 13467 V 2440 5.00 2
2440 11 Eva Perfume Iris Nguyen - Perfumery House 13467 P 0 5.00 2
21763 999 Notebook with Dyed Fabric Cover, A5 Size, Sturdy Fabric Cover, Colorfast, Eye-catching Design, Quality Paper Material, Study Note-taking Hoa Tiến Brocade 13601 V 2149 5.00 1
2149 999 Notebook with Dyed Fabric Cover, A5 Size, Sturdy Fabric Cover, Colorfast, Eye-catching Design, Quality Paper Material, Study Note-taking Hoa Tiến Brocade 13601 P 0 5.00 1
22094 999 Noir Perfume Saigon Elixir 13672 V 2003 5.00 1
22093 999 Noir Perfume Saigon Elixir 13672 V 2003 5.00 1
2003 999 Noir Perfume Saigon Elixir 13672 P 0 5.00 1
22114 999 Grand Neroli Perfume Saigon Elixir 13682 V 1993 5.00 2
22113 999 Grand Neroli Perfume Saigon Elixir 13682 V 1993 5.00 2
1993 999 Grand Neroli Perfume Saigon Elixir 13682 P 0 5.00 2
22124 999 Blueberry Musk Perfume Saigon Elixir 13687 V 1988 5.00 4
22123 999 Blueberry Musk Perfume Saigon Elixir 13687 V 1988 5.00 4
1988 999 Blueberry Musk Perfume Saigon Elixir 13687 P 0 5.00 4
22126 999 Rose Elixir Perfume Saigon Elixir 13688 V 1987 5.00 2
22125 998 Rose Elixir Perfume Saigon Elixir 13688 V 1987 5.00 2
1987 999 Rose Elixir Perfume Saigon Elixir 13688 P 0 5.00 2
23042 999 Scented Wax ADORA 13933 P 0 5.00 1
979 999 Hand-drawn Tote Bags, Watercolor Flower Collection Hanako Shop 14255 P 0 0
24223 999 Hand-drawn Tote Bags, Watercolor Flower Collection Hanako Shop 14255 V 979 0
24224 999 Hand-drawn Tote Bags, Watercolor Flower Collection Hanako Shop 14255 V 979 0
978 999 Hand-drawn Tote Bags - Fruits Hanako Shop 14256 P 0 0
24225 999 Hand-drawn Tote Bags - Fruits Hanako Shop 14256 V 978 0
754 1997 “Calm” Lady & Flower Clay Earrings, Unique And Distinctive Accessories, High Durability, Ideal Gift For Independent Girls Evian Studio 14386 P 0 5.00 4
37097 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 P 0 0
37157 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37158 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37159 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37160 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37161 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37162 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37163 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37164 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37165 997 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37166 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37167 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37168 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37169 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37170 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37171 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
37172 999 Wooden Framed Scented Wax, Random Design, Decorative Item, Variety of Scents, Mild Fragrance, Deodorizes Living Spaces ADORA 15895 V 37097 0
42359 999 Pink Tiger Silk Scarf, Eye-Catching Patterned Scarf, Tiger Patterned Silk Scarf, Premium Soft Silk Scarf, Fashion Accessory, Silk Wrap Folksight 16433 V 41124 5.00 1
41124 999 Pink Tiger Silk Scarf, Eye-Catching Patterned Scarf, Tiger Patterned Silk Scarf, Premium Soft Silk Scarf, Fashion Accessory, Silk Wrap Folksight 16433 P 0 5.00 1
41125 999 Pink Tiger Silk Scarf, Eye-Catching Patterned Scarf, Tiger Patterned Silk Scarf, Premium Soft Silk Scarf, Fashion Accessory, Silk Wrap Folksight 16433 V 41124 5.00 1
42344 999 Divine Swallow Silk Scarf Nung Ethnic, Pink Silk Scarf, Art-Printed Scarf, Swallow Bird Pattern, Soft Silk Blend Scarf Folksight 16438 V 41134 5.00 4
41134 999 Divine Swallow Silk Scarf Nung Ethnic, Pink Silk Scarf, Art-Printed Scarf, Swallow Bird Pattern, Soft Silk Blend Scarf Folksight 16438 P 0 5.00 4
41135 999 Divine Swallow Silk Scarf Nung Ethnic, Pink Silk Scarf, Art-Printed Scarf, Swallow Bird Pattern, Soft Silk Blend Scarf Folksight 16438 V 41134 5.00 4