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 (461, 462, 495)

Query time 0.00063

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.06955272,
    "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.0087844,
          "filtered": 100,
          "attached_condition": "gp.group_id in (461,462,495)",
          "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
549 18508 12528 461
596 18508 12544 461
549 18509 12528 461
596 18509 12545 461
549 18510 12537 461
596 18510 12541 461
549 18511 12537 461
596 18511 12542 461
549 18513 12537 461
596 18513 12544 461
549 18514 12537 461
596 18514 12545 461
549 18515 13064 461
596 18515 12541 461
549 18516 13064 461
596 18516 12542 461
549 18517 13064 461
596 18517 12543 461
549 18518 13064 461
596 18518 12544 461
549 18519 13064 461
596 18519 12545 461
549 18520 12528 462
596 18520 12541 462
549 18521 12528 462
596 18521 12542 462
549 18522 12528 462
596 18522 12543 462
549 18523 12528 462
596 18523 12544 462
549 18524 12528 462
596 18524 12545 462
549 18525 12537 462
596 18525 12541 462
549 18526 12537 462
596 18526 12542 462
549 18527 12537 462
596 18527 12543 462
549 18528 12537 462
596 18528 12544 462
549 18529 12537 462
596 18529 12545 462
549 18530 13064 462
596 18530 12541 462
549 18531 13064 462
596 18531 12542 462
549 18532 13064 462
596 18532 12543 462
549 18533 13064 462
596 18533 12544 462
549 18534 13064 462
596 18534 12545 462
731 19936 13950 495
987 19936 13952 495
731 19937 13331 495
987 19937 13952 495
731 19938 13331 495
987 19938 13953 495
731 19939 13950 495
987 19939 13953 495
731 19940 13951 495
987 19940 13952 495
731 19941 13951 495
987 19941 13953 495