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, 156, 146, 140, 131, 158, 141, 
    144, 154
  )

Query time 0.00129

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.07932875,
    "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": 34,
          "cost": 0.01486481,
          "filtered": 100,
          "attached_condition": "gp.group_id in (135,136,156,146,140,131,158,141,144,154)",
          "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": 34,
          "rows": 1,
          "cost": 0.03391497,
          "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": 34,
          "rows": 1,
          "cost": 0.03054897,
          "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 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 13899 12788 140
617 13900 12812 140
617 13901 12790 140
607 13902 12624 141
607 13903 12627 141
607 13913 12624 144
607 13914 12627 144
607 13915 12632 144
607 13919 12624 146
607 13920 12627 146
609 13947 12661 154
609 13948 12662 154
609 13949 12664 154
618 13963 12843 156
618 13964 12845 156
618 13965 12847 156
618 13966 12849 156
618 13967 12851 156
618 13968 12853 156
618 13971 12858 158
618 13972 12860 158
618 13973 12862 158