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 (
    135, 136, 140, 131, 139, 132, 134, 138, 
    137
  )

Query time 0.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.07052405,
    "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": 30,
          "cost": 0.01345135,
          "filtered": 100,
          "attached_condition": "gp.group_id in (135,136,140,131,139,132,134,138,137)",
          "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": 30,
          "rows": 1,
          "cost": 0.03002135,
          "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": 30,
          "rows": 1,
          "cost": 0.02705135,
          "filtered": 100,
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
617 13861 12768 131
617 13862 12770 131
617 13863 12772 131
617 13864 12773 131
617 13865 12775 131
617 13866 12777 132
617 13867 12779 132
617 13868 12770 132
617 13869 12775 132
617 13873 12788 134
617 13874 12790 134
617 13875 12792 134
617 13876 12794 135
617 13877 12779 135
617 13878 12775 135
617 13879 12794 136
617 13880 12779 136
617 13881 12796 136
617 13882 12798 136
617 13883 12768 137
617 13884 12800 137
617 13885 12782 138
617 13886 12802 138
617 13887 12804 138
617 13888 12806 138
617 13897 12808 139
617 13898 12810 139
617 13899 12788 140
617 13900 12812 140
617 13901 12790 140