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 (
    156, 158, 157, 155, 159, 160, 164, 163, 
    161, 162, 165
  )

Query time 0.00039

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.1479683,
    "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": 68,
          "cost": 0.02067882,
          "filtered": 100,
          "attached_condition": "gp.group_id in (156,158,157,155,159,160,164,163,161,162,165)",
          "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": 68,
          "rows": 1,
          "cost": 0.06701074,
          "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": 68,
          "rows": 1,
          "cost": 0.06027874,
          "filtered": 100,
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
618 13951 12819 155
618 13952 12821 155
618 13953 12823 155
618 13954 12825 155
618 13955 12827 155
618 13956 12829 155
618 13957 12831 155
618 13958 12833 155
618 13959 12835 155
618 13960 12837 155
618 13961 12839 155
618 13962 12841 155
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 13969 12854 157
618 13970 12856 157
618 13971 12858 158
618 13972 12860 158
618 13973 12862 158
618 13974 12823 159
618 13975 12825 159
618 13976 12829 159
618 13977 12864 159
618 13978 12831 159
618 13979 12866 159
618 13980 12868 159
618 13981 12833 159
618 13982 12870 159
618 13983 12872 159
618 13984 12837 159
618 13985 12873 159
618 13986 12875 159
618 13987 12877 159
618 13988 12839 159
618 13989 12823 160
618 13990 12829 160
618 13991 12864 160
618 13992 12831 160
618 13993 12870 160
618 13994 12837 160
618 13995 12875 160
618 13996 12877 160
618 13997 12841 160
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
618 14011 12903 165
618 14012 12905 165
618 14013 12907 165
618 14014 12909 165
618 14015 12911 165
618 14016 12853 165
618 14017 12913 165
618 14018 12915 165