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 (
    12779, 16383, 16954, 16868, 12993, 12461, 
    14862, 17134, 15886, 13460, 16126, 
    16869
  ) 
GROUP BY 
  products.product_id 
ORDER BY 
  NULL asc

Query time 0.02794

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": 115,
            "filtered": 100,
            "index_condition": "variation_group_products.group_id in (12779,16383,16954,16868,12993,12461,14862,17134,15886,13460,16126,16869)"
          }
        },
        {
          "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
16470 999 Embroidered Linen Coaster, Various Patterns and Colors, Intricate Hand Embroidery, Excellent Absorbency, Easy to Clean, Handcrafted Product Bông Bay Bay 12461 V 5725 0
16469 999 Embroidered Linen Coaster, Various Patterns and Colors, Intricate Hand Embroidery, Excellent Absorbency, Easy to Clean, Handcrafted Product Bông Bay Bay 12461 V 5725 0
16468 999 Embroidered Linen Coaster, Various Patterns and Colors, Intricate Hand Embroidery, Excellent Absorbency, Easy to Clean, Handcrafted Product Bông Bay Bay 12461 V 5725 0
16467 999 Embroidered Linen Coaster, Various Patterns and Colors, Intricate Hand Embroidery, Excellent Absorbency, Easy to Clean, Handcrafted Product Bông Bay Bay 12461 V 5725 0
5725 999 Embroidered Linen Coaster, Various Patterns and Colors, Intricate Hand Embroidery, Excellent Absorbency, Easy to Clean, Handcrafted Product Bông Bay Bay 12461 P 0 0
18383 999 Medium Arch Earrings In Silver Color, Made Of Fired Clay, Gold-Plated Stainless Steel Hooks, High Durability, Gift For The Girls CLAY BY POLLY 12779 V 4287 0
4287 999 Medium Arch Earrings In Silver Color, Made Of Fired Clay, Gold-Plated Stainless Steel Hooks, High Durability, Gift For The Girls CLAY BY POLLY 12779 P 0 0
19166 999 Calm Grey & Electric Blue, Low Cut Socks, Stretchy Socks, Non-Slip Socks, Hiking Socks, Unisex Socks, Neon-Colored Socks VIET MAN 12993 V 3626 0
3626 999 Calm Grey & Electric Blue, Low Cut Socks, Stretchy Socks, Non-Slip Socks, Hiking Socks, Unisex Socks, Neon-Colored Socks VIET MAN 12993 P 0 0
21111 13 Jasminee Perfume, White Jasmine Scent, Lightly Fragrant Perfume, Sophisticated Alluring Scent, Gift For Your Girlfriend Iris Nguyen - Perfumery House 13460 V 2447 0
2447 13 Jasminee Perfume, White Jasmine Scent, Lightly Fragrant Perfume, Sophisticated Alluring Scent, Gift For Your Girlfriend Iris Nguyen - Perfumery House 13460 P 0 0
47255 999 Orange White Black Epsom Leather Handcrafted Watch Strap ELEGENT 14862 P 0 0
4908 999 Orange White Black Epsom Leather Handcrafted Watch Strap, Modern And Youthful Style, Unique Color Combination, Minimalist Yet Not Plain ELEGENT 14862 P 0 0
36764 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 P 0 0
37050 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37051 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37052 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37053 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37054 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37055 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37056 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37057 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37058 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37059 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37060 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37061 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37062 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37063 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37064 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37065 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
37066 999 Strawberry Shaped Scented Melt Wax, Pack of 8 ADORA 15886 V 36764 0
38626 4 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 P 0 0
38628 3 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38629 7 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38630 7 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38631 5 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38634 3 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38635 6 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38636 5 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38640 4 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38641 5 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
38646 2 Set of 2 Essential Oil Scented Candle For Aromatherapy Tiệm Thơm Nức - Aromatherapy 16126 V 38626 0
40928 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 P 0 5.00 6
40953 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40954 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40955 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40956 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40957 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40958 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40959 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40960 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
40961 999 Scented Candles Gift Set OnaTree - Vietnamese Cosmetics 16383 V 40928 5.00 6
45569 999 Relaxing Scented Candle, Summer Collection ADORA 16868 P 0 0
45702 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45703 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45704 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45705 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45706 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45707 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45708 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45709 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45710 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45711 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45712 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45713 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45714 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45715 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45716 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45717 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45718 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45719 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45720 999 Relaxing Scented Candle, Summer Collection ADORA 16868 V 45569 0
45570 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 P 0 0
45721 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45722 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45723 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45724 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45725 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45726 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45727 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45728 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45729 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45730 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45731 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45732 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45733 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45734 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45735 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45736 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45737 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45738 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
45739 999 Relaxing Scented Candle In Glass Jar With Wooden Lid ADORA 16869 V 45570 0
46841 999 My Life Lessons Self Journal, Personal Development Notebook, Note-Taking Notebook, Personal Notebook, Soft Cover Notebook The YOUful 16954 V 46592 0
46592 999 My Life Lessons Self Journal, Personal Development Notebook, Note-Taking Notebook, Personal Notebook, Soft Cover Notebook The YOUful 16954 P 0 0
48066 999 Cat Handmade Scented Candle, Meticulously Crafted Design, Multi-Functional Decorative Accessory, Creates Cozy Atmosphere ẤM Corner 17134 V 48122 0
48122 999 Cat Handmade Scented Candle, Meticulously Crafted Design, Multi-Functional Decorative Accessory, Creates Cozy Atmosphere ẤM Corner 17134 P 0 0
48123 999 Cat Handmade Scented Candle, Meticulously Crafted Design, Multi-Functional Decorative Accessory, Creates Cozy Atmosphere ẤM Corner 17134 V 48122 0