SELECT 
  pf.feature_id, 
  pf.company_id, 
  pf.feature_type, 
  pf.parent_id, 
  pf.display_on_product, 
  pf.display_on_catalog, 
  pf.display_on_header, 
  cscart_product_features_descriptions.description, 
  cscart_product_features_descriptions.lang_code, 
  cscart_product_features_descriptions.prefix, 
  cscart_product_features_descriptions.suffix, 
  pf.categories_path, 
  cscart_product_features_descriptions.full_description, 
  pf.status, 
  pf.comparison, 
  pf.position 
FROM 
  cscart_product_features AS pf 
  LEFT JOIN cscart_product_features_descriptions ON cscart_product_features_descriptions.feature_id = pf.feature_id 
  AND cscart_product_features_descriptions.lang_code = 'ro' 
  INNER JOIN cscart_ult_objects_sharing ON (
    cscart_ult_objects_sharing.share_object_id = pf.feature_id 
    AND cscart_ult_objects_sharing.share_company_id = 1 
    AND cscart_ult_objects_sharing.share_object_type = 'product_features'
  ) 
WHERE 
  pf.feature_type = 'G' 
  AND (
    pf.feature_id IN ('') 
    OR pf.feature_id NOT IN (
      SELECT 
        parent_id 
      FROM 
        cscart_product_features
    )
  ) 
  AND pf.display_on_product = 'Y' 
  AND (
    pf.categories_path = '' 
    OR ISNULL(pf.categories_path) 
    OR FIND_IN_SET(4528, pf.categories_path) 
    OR FIND_IN_SET(285, pf.categories_path) 
    OR FIND_IN_SET(6333, pf.categories_path) 
    OR FIND_IN_SET(6334, pf.categories_path) 
    OR FIND_IN_SET(6335, pf.categories_path) 
    OR FIND_IN_SET(6336, pf.categories_path) 
    OR FIND_IN_SET(6337, pf.categories_path) 
    OR FIND_IN_SET(6338, pf.categories_path) 
    OR FIND_IN_SET(6339, pf.categories_path) 
    OR FIND_IN_SET(6644, pf.categories_path) 
    OR FIND_IN_SET(7347, pf.categories_path) 
    OR FIND_IN_SET(28615, pf.categories_path) 
    OR FIND_IN_SET(23396, pf.categories_path) 
    OR FIND_IN_SET(28617, pf.categories_path)
  ) 
ORDER BY 
  pf.position, 
  cscart_product_features_descriptions.description

Query time 0.00127

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2.45"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "pf",
            "access_type": "ALL",
            "possible_keys": [
              "PRIMARY"
            ],
            "rows_examined_per_scan": 15,
            "rows_produced_per_join": 0,
            "filtered": "6.67",
            "cost_info": {
              "read_cost": "1.65",
              "eval_cost": "0.10",
              "prefix_cost": "1.75",
              "data_read_per_join": "143"
            },
            "used_columns": [
              "feature_id",
              "company_id",
              "feature_type",
              "categories_path",
              "parent_id",
              "display_on_product",
              "display_on_catalog",
              "display_on_header",
              "status",
              "position",
              "comparison"
            ],
            "attached_condition": "((`maniamall_cscart`.`pf`.`feature_type` = 'G') and ((`maniamall_cscart`.`pf`.`feature_id` = 0) or <in_optimizer>(`maniamall_cscart`.`pf`.`feature_id`,`maniamall_cscart`.`pf`.`feature_id` in ( <materialize> (/* select#2 */ select `maniamall_cscart`.`cscart_product_features`.`parent_id` from `maniamall_cscart`.`cscart_product_features` where true ), <primary_index_lookup>(`maniamall_cscart`.`pf`.`feature_id` in <temporary table> on <auto_distinct_key> where ((`maniamall_cscart`.`pf`.`feature_id` = `<materialized_subquery>`.`parent_id`)))) is false)) and (`maniamall_cscart`.`pf`.`display_on_product` = 'Y') and ((`maniamall_cscart`.`pf`.`categories_path` = '') or (`maniamall_cscart`.`pf`.`categories_path` is null) or (0 <> find_in_set(4528,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(285,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6333,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6334,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6335,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6336,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6337,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6338,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6339,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(6644,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(7347,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(28615,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(23396,`maniamall_cscart`.`pf`.`categories_path`)) or (0 <> find_in_set(28617,`maniamall_cscart`.`pf`.`categories_path`))))",
            "attached_subqueries": [
              {
                "table": {
                  "table_name": "<materialized_subquery>",
                  "access_type": "eq_ref",
                  "key": "<auto_key>",
                  "key_length": "3",
                  "rows_examined_per_scan": 1,
                  "materialized_from_subquery": {
                    "using_temporary_table": true,
                    "dependent": true,
                    "cacheable": false,
                    "query_block": {
                      "select_id": 2,
                      "cost_info": {
                        "query_cost": "1.75"
                      },
                      "table": {
                        "table_name": "cscart_product_features",
                        "access_type": "ALL",
                        "rows_examined_per_scan": 15,
                        "rows_produced_per_join": 15,
                        "filtered": "100.00",
                        "cost_info": {
                          "read_cost": "0.25",
                          "eval_cost": "1.50",
                          "prefix_cost": "1.75",
                          "data_read_per_join": "2K"
                        },
                        "used_columns": [
                          "parent_id"
                        ]
                      }
                    }
                  }
                }
              }
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_features_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "maniamall_cscart.pf.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.25",
              "eval_cost": "0.10",
              "prefix_cost": "2.10",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "full_description",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_ult_objects_sharing",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "share_object_id",
              "share_company_id",
              "share_object_type"
            ],
            "key_length": "159",
            "ref": [
              "maniamall_cscart.pf.feature_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "0.25",
              "eval_cost": "0.10",
              "prefix_cost": "2.45",
              "data_read_per_join": "159"
            },
            "used_columns": [
              "share_company_id",
              "share_object_id",
              "share_object_type"
            ],
            "attached_condition": "(`maniamall_cscart`.`cscart_ult_objects_sharing`.`share_object_id` = `maniamall_cscart`.`pf`.`feature_id`)"
          }
        }
      ]
    }
  }
}

Result

feature_id company_id feature_type parent_id display_on_product display_on_catalog display_on_header description lang_code prefix suffix categories_path full_description status comparison position
14 1 G 0 Y Y N Electronics ro A N 0
20 1 G 0 Y Y N Main features ro A N 10
24 1 G 0 Y Y N Specifications ro A N 20
33 1 G 0 Y Y N Multimedia ro A N 30
30 1 G 0 Y Y N Interfaces ro A N 40
40 1 G 0 Y Y N Additional info ro A N 50
37 1 G 0 Y Y N Dimensions ro A N 100