SELECT 
  v.product_id, 
  v.feature_id, 
  v.value, 
  v.value_int, 
  v.variant_id, 
  f.feature_type, 
  fd.description, 
  fd.prefix, 
  fd.suffix, 
  vd.variant, 
  f.parent_id, 
  f.position, 
  gf.position as gposition 
FROM 
  cscart_product_features as f 
  LEFT JOIN cscart_product_features_values as v ON v.feature_id = f.feature_id 
  LEFT JOIN cscart_product_features_descriptions as fd ON fd.feature_id = v.feature_id 
  AND fd.lang_code = 'pl' 
  LEFT JOIN cscart_product_feature_variants fv ON fv.variant_id = v.variant_id 
  LEFT JOIN cscart_product_feature_variant_descriptions as vd ON vd.variant_id = fv.variant_id 
  AND vd.lang_code = 'pl' 
  LEFT JOIN cscart_product_features as gf ON gf.feature_id = f.parent_id 
  AND gf.feature_type = 'G' 
WHERE 
  f.status IN ('A') 
  AND v.product_id in (
    2281, 2379, 2346, 2301, 2081, 1947, 2157, 
    2207, 2142, 2121, 2375, 2088, 2089, 
    2090, 2087, 2158, 1787, 2105, 2133, 
    2125, 2092, 2093, 2046, 2045, 2044, 
    2047, 2049, 2048, 1995, 1943, 2120, 
    2094, 2385, 1989, 2314, 1951, 2096, 
    1988, 2098, 2097, 2099, 2199, 2200, 
    1948, 2095, 2100, 2124, 2101, 2134, 
    2198, 2291, 2103, 2307, 2166, 2208, 
    2102, 2104, 2345, 2143, 2119, 2144, 
    2362, 2016, 2319, 1999, 2019, 2321, 
    2322, 2018, 1928, 2017, 1998, 2020, 
    2071, 2320, 2333, 2080, 2325, 2113, 
    2324, 2327, 2326, 2347, 2323, 2135, 
    2300, 2206, 2193, 2079, 2078, 1980, 
    1976, 1927, 2058, 1975, 1964, 2136, 
    2138, 2180, 2181, 2179, 2315, 2050
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(295, f.categories_path) 
    OR FIND_IN_SET(389, f.categories_path)
  ) 
  AND IF(
    f.parent_id, 
    (
      SELECT 
        status 
      FROM 
        cscart_product_features as df 
      WHERE 
        df.feature_id = f.parent_id
    ), 
    'A'
  ) IN ('A') 
  AND (
    v.variant_id != 0 
    OR (
      f.feature_type != 'C' 
      AND v.value != ''
    ) 
    OR (f.feature_type = 'C') 
    OR v.value_int != ''
  ) 
  AND v.lang_code = 'pl' 
ORDER BY 
  fd.description, 
  fv.position

Query time 0.00075

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.52"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "f",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "status"
            ],
            "key": "status",
            "used_key_parts": [
              "status"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 11,
            "rows_produced_per_join": 1,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "0.50",
              "eval_cost": "0.11",
              "prefix_cost": "1.60",
              "data_read_per_join": "492"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "categories_path",
              "parent_id",
              "display_on_catalog",
              "status",
              "position"
            ],
            "attached_condition": "((`cscartdevel`.`f`.`display_on_catalog` = 'Y') and ((`cscartdevel`.`f`.`categories_path` = '') or (0 <> find_in_set(295,`cscartdevel`.`f`.`categories_path`)) or (0 <> find_in_set(389,`cscartdevel`.`f`.`categories_path`))) and (if(`cscartdevel`.`f`.`parent_id`,(/* select#2 */ select `cscartdevel`.`df`.`status` from `cscartdevel`.`cscart_product_features` `df` where (`cscartdevel`.`df`.`feature_id` = `cscartdevel`.`f`.`parent_id`)),'A') = 'A'))",
            "attached_subqueries": [
              {
                "dependent": true,
                "cacheable": false,
                "query_block": {
                  "select_id": 2,
                  "cost_info": {
                    "query_cost": "0.35"
                  },
                  "table": {
                    "table_name": "df",
                    "access_type": "eq_ref",
                    "possible_keys": [
                      "PRIMARY"
                    ],
                    "key": "PRIMARY",
                    "used_key_parts": [
                      "feature_id"
                    ],
                    "key_length": "3",
                    "ref": [
                      "cscartdevel.f.parent_id"
                    ],
                    "rows_examined_per_scan": 1,
                    "rows_produced_per_join": 1,
                    "filtered": "100.00",
                    "cost_info": {
                      "read_cost": "0.25",
                      "eval_cost": "0.10",
                      "prefix_cost": "0.35",
                      "data_read_per_join": "448"
                    },
                    "used_columns": [
                      "feature_id",
                      "status"
                    ]
                  }
                }
              }
            ]
          }
        },
        {
          "table": {
            "table_name": "v",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "fl",
              "variant_id",
              "lang_code",
              "product_id",
              "fpl",
              "idx_product_feature_variant_id"
            ],
            "key": "fl",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "cscartdevel.f.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 10,
            "rows_produced_per_join": 0,
            "filtered": "6.98",
            "index_condition": "((`cscartdevel`.`v`.`variant_id` <> 0) or ((`cscartdevel`.`f`.`feature_type` <> 'C') and (`cscartdevel`.`v`.`value` <> '')) or (`cscartdevel`.`f`.`feature_type` = 'C') or (`cscartdevel`.`v`.`value_int` <> 0))",
            "cost_info": {
              "read_cost": "2.75",
              "eval_cost": "0.08",
              "prefix_cost": "5.45",
              "data_read_per_join": "608"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "(`cscartdevel`.`v`.`product_id` in (2281,2379,2346,2301,2081,1947,2157,2207,2142,2121,2375,2088,2089,2090,2087,2158,1787,2105,2133,2125,2092,2093,2046,2045,2044,2047,2049,2048,1995,1943,2120,2094,2385,1989,2314,1951,2096,1988,2098,2097,2099,2199,2200,1948,2095,2100,2124,2101,2134,2198,2291,2103,2307,2166,2208,2102,2104,2345,2143,2119,2144,2362,2016,2319,1999,2019,2321,2322,2018,1928,2017,1998,2020,2071,2320,2333,2080,2325,2113,2324,2327,2326,2347,2323,2135,2300,2206,2193,2079,2078,1980,1976,1927,2058,1975,1964,2136,2138,2180,2181,2179,2315,2050))"
          }
        },
        {
          "table": {
            "table_name": "fd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "cscartdevel.f.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.19",
              "eval_cost": "0.08",
              "prefix_cost": "5.72",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "fv",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id"
            ],
            "key_length": "3",
            "ref": [
              "cscartdevel.v.variant_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.19",
              "eval_cost": "0.08",
              "prefix_cost": "5.99",
              "data_read_per_join": "897"
            },
            "used_columns": [
              "variant_id",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "vd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "cscartdevel.fv.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.19",
              "eval_cost": "0.08",
              "prefix_cost": "6.26",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "gf",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "cscartdevel.f.parent_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.19",
              "eval_cost": "0.08",
              "prefix_cost": "6.53",
              "data_read_per_join": "344"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "position"
            ],
            "attached_condition": "<if>(is_not_null_compl(gf), (`cscartdevel`.`gf`.`feature_type` = 'G'), true)"
          }
        }
      ]
    }
  }
}