SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'en' 
  AND gp.group_id IN (
    145, 149, 142, 152, 151, 164, 138, 163, 
    161, 150, 137, 162
  )

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0769932,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "loops": 1,
          "rows": 32,
          "cost": 0.01622488,
          "filtered": 100,
          "attached_condition": "gp.group_id in (145,149,142,152,151,164,138,163,161,150,137,162)",
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["u508912950_dev_2025.gp.product_id"],
          "loops": 32,
          "rows": 1,
          "cost": 0.03196816,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'en'",
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "6",
          "used_key_parts": ["group_id", "feature_id"],
          "ref": [
            "u508912950_dev_2025.gp.group_id",
            "u508912950_dev_2025.pfv.feature_id"
          ],
          "loops": 32,
          "rows": 1,
          "cost": 0.02880016,
          "filtered": 100,
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
617 13883 12768 137
617 13884 12800 137
617 13885 12782 138
617 13886 12802 138
617 13887 12804 138
617 13888 12806 138
607 13906 12624 142
607 13907 12627 142
607 13917 12624 145
607 13918 12627 145
607 13926 12624 149
607 13927 12634 149
607 13933 12646 150
607 13934 12648 150
607 13935 12650 150
607 13936 12652 151
607 13937 12654 151
609 13941 12656 152
609 13942 12658 152
618 13998 12879 161
618 13999 12881 161
618 14000 12883 161
618 14001 12885 162
618 14002 12887 162
618 14003 12889 162
618 14004 12891 162
618 14005 12893 163
618 14006 12829 163
618 14007 12895 163
618 14008 12897 164
618 14009 12899 164
618 14010 12901 164