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 (523)

Query time 0.00144

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "87.47"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 2,
          "rows_produced_per_join": 2,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.50",
            "eval_cost": "0.20",
            "prefix_cost": "0.70",
            "data_read_per_join": "208"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "gp",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 62,
          "rows_produced_per_join": 124,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "30.97",
            "eval_cost": "12.40",
            "prefix_cost": "44.07",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "fpl",
          "used_key_parts": [
            "feature_id",
            "product_id",
            "lang_code"
          ],
          "key_length": "12",
          "ref": [
            "gaseus.gpf.feature_id",
            "gaseus.gp.product_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 124,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "31.00",
            "eval_cost": "12.40",
            "prefix_cost": "87.47",
            "data_read_per_join": "95K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
642 11965 2177 523
642 11966 2178 523
642 11967 2179 523
642 11968 2180 523
642 11969 2181 523
642 11970 2177 523
642 11971 2178 523
642 11972 2179 523
642 11973 2180 523
642 11974 2181 523
642 11975 2177 523
642 11976 2178 523
642 11977 2179 523
642 11978 2180 523
642 11979 2181 523
642 11980 2177 523
642 11981 2178 523
642 11982 2179 523
642 11983 2180 523
642 11984 2181 523
642 11985 2177 523
642 11986 2178 523
642 11987 2179 523
642 11988 2180 523
642 11989 2181 523
642 11990 2177 523
642 11991 2178 523
642 11992 2179 523
642 11993 2180 523
642 11994 2181 523
642 11995 2177 523
642 11996 2178 523
642 11997 2179 523
642 11998 2180 523
642 11999 2181 523
642 12000 2177 523
642 12001 2178 523
642 12002 2179 523
642 12003 2180 523
642 12004 2181 523
642 12005 2177 523
642 12006 2178 523
642 12007 2179 523
642 12008 2180 523
642 12009 2181 523
642 12010 2177 523
642 12011 2178 523
642 12012 2179 523
642 12013 2180 523
642 12014 2181 523
642 12015 2177 523
642 12016 2178 523
642 12017 2179 523
642 12018 2180 523
642 12019 2181 523
642 12020 2177 523
642 12021 2178 523
642 12022 2179 523
642 12023 2180 523
642 12024 2181 523
642 12025 2177 523
642 12026 2178 523
642 12027 2179 523
642 12028 2180 523
642 12029 2181 523
624 11965 2176 523
624 11966 2176 523
624 11967 2176 523
624 11968 2176 523
624 11969 2176 523
624 11970 2183 523
624 11971 2183 523
624 11972 2183 523
624 11973 2183 523
624 11974 2183 523
624 11975 2183 523
624 11976 2183 523
624 11977 2183 523
624 11978 2183 523
624 11979 2183 523
624 11980 2184 523
624 11981 2184 523
624 11982 2184 523
624 11983 2184 523
624 11984 2184 523
624 11985 2184 523
624 11986 2184 523
624 11987 2184 523
624 11988 2184 523
624 11989 2184 523
624 11990 2185 523
624 11991 2185 523
624 11992 2185 523
624 11993 2185 523
624 11994 2185 523
624 11995 2185 523
624 11996 2185 523
624 11997 2185 523
624 11998 2185 523
624 11999 2185 523
624 12000 2186 523
624 12001 2186 523
624 12002 2186 523
624 12003 2186 523
624 12004 2186 523
624 12005 2186 523
624 12006 2186 523
624 12007 2186 523
624 12008 2186 523
624 12009 2186 523
624 12010 2187 523
624 12011 2187 523
624 12012 2187 523
624 12013 2187 523
624 12014 2187 523
624 12015 2187 523
624 12016 2187 523
624 12017 2187 523
624 12018 2187 523
624 12019 2187 523
624 12020 2188 523
624 12021 2188 523
624 12022 2188 523
624 12023 2188 523
624 12024 2188 523
624 12025 2188 523
624 12026 2188 523
624 12027 2188 523
624 12028 2188 523
624 12029 2188 523
627 11965 2182 523
627 11966 2182 523
627 11967 2182 523
627 11968 2182 523
627 11969 2182 523
627 11970 1836 523
627 11971 1836 523
627 11972 1836 523
627 11973 1836 523
627 11974 1836 523
627 11975 2182 523
627 11976 2182 523
627 11977 2182 523
627 11978 2182 523
627 11979 2182 523
627 11980 1836 523
627 11981 1836 523
627 11982 1836 523
627 11983 1836 523
627 11984 1836 523
627 11985 2182 523
627 11986 2182 523
627 11987 2182 523
627 11988 2182 523
627 11989 2182 523
627 11990 1836 523
627 11991 1836 523
627 11992 1836 523
627 11993 1836 523
627 11994 1836 523
627 11995 2182 523
627 11996 2182 523
627 11997 2182 523
627 11998 2182 523
627 11999 2182 523
627 12000 1836 523
627 12001 1836 523
627 12002 1836 523
627 12003 1836 523
627 12004 1836 523
627 12005 2182 523
627 12006 2182 523
627 12007 2182 523
627 12008 2182 523
627 12009 2182 523
627 12010 1836 523
627 12011 1836 523
627 12012 1836 523
627 12013 1836 523
627 12014 1836 523
627 12015 2182 523
627 12016 2182 523
627 12017 2182 523
627 12018 2182 523
627 12019 2182 523
627 12020 1836 523
627 12021 1836 523
627 12022 1836 523
627 12023 1836 523
627 12024 1836 523
627 12025 2182 523
627 12026 2182 523
627 12027 2182 523
627 12028 2182 523
627 12029 2182 523