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.internal_name, 
  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, 
  pf.purpose, 
  pf.feature_style, 
  pf.filter_style, 
  pf.feature_code, 
  pf.timestamp, 
  pf.updated_timestamp, 
  pf_groups.position AS group_position, 
  cscart_product_features_values.value, 
  cscart_product_features_values.variant_id, 
  cscart_product_features_values.value_int 
FROM 
  cscart_product_features AS pf 
  LEFT JOIN cscart_product_features AS pf_groups ON pf.parent_id = pf_groups.feature_id 
  LEFT JOIN cscart_product_features_descriptions AS pf_groups_description ON pf_groups_description.feature_id = pf.parent_id 
  AND pf_groups_description.lang_code = 'en' 
  LEFT JOIN cscart_product_features_descriptions ON cscart_product_features_descriptions.feature_id = pf.feature_id 
  AND cscart_product_features_descriptions.lang_code = 'en' 
  INNER JOIN cscart_product_features_values ON cscart_product_features_values.feature_id = pf.feature_id 
  AND cscart_product_features_values.product_id = 139 
  AND cscart_product_features_values.lang_code = 'en' 
  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 
  1 = 1 
  AND pf.feature_type != 'G' 
  AND pf.status IN ('A') 
  AND (
    pf_groups.status IN ('A') 
    OR pf_groups.status IS NULL
  ) 
  AND pf.display_on_product = 'Y' 
  AND (
    pf.categories_path = '' 
    OR ISNULL(pf.categories_path) 
    OR FIND_IN_SET(265, pf.categories_path) 
    OR FIND_IN_SET(266, pf.categories_path) 
    OR FIND_IN_SET(271, pf.categories_path) 
    OR FIND_IN_SET(273, pf.categories_path)
  ) 
GROUP BY 
  pf.feature_id 
ORDER BY 
  group_position asc, 
  pf_groups_description.description asc, 
  pf_groups.feature_id asc, 
  pf.position asc, 
  cscart_product_features_descriptions.description asc, 
  pf.feature_id asc

Query time 0.00180

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "9.73"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_temporary_table": true,
        "using_filesort": false,
        "nested_loop": [
          {
            "table": {
              "table_name": "pf",
              "access_type": "ALL",
              "possible_keys": [
                "PRIMARY",
                "status"
              ],
              "rows_examined_per_scan": 51,
              "rows_produced_per_join": 4,
              "filtered": "8.47",
              "cost_info": {
                "read_cost": "5.41",
                "eval_cost": "0.43",
                "prefix_cost": "5.84",
                "data_read_per_join": "5K"
              },
              "used_columns": [
                "feature_id",
                "feature_code",
                "company_id",
                "purpose",
                "feature_style",
                "filter_style",
                "feature_type",
                "categories_path",
                "parent_id",
                "display_on_product",
                "display_on_catalog",
                "display_on_header",
                "status",
                "position",
                "comparison",
                "timestamp",
                "updated_timestamp"
              ],
              "attached_condition": "((`gaseus`.`pf`.`feature_type` <> 'G') and (`gaseus`.`pf`.`status` = 'A') and (`gaseus`.`pf`.`display_on_product` = 'Y') and ((`gaseus`.`pf`.`categories_path` = '') or (`gaseus`.`pf`.`categories_path` is null) or (0 <> find_in_set(265,`gaseus`.`pf`.`categories_path`)) or (0 <> find_in_set(266,`gaseus`.`pf`.`categories_path`)) or (0 <> find_in_set(271,`gaseus`.`pf`.`categories_path`)) or (0 <> find_in_set(273,`gaseus`.`pf`.`categories_path`))))"
            }
          },
          {
            "table": {
              "table_name": "cscart_product_features_values",
              "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.pf.feature_id",
                "const",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 4,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "1.08",
                "eval_cost": "0.43",
                "prefix_cost": "7.36",
                "data_read_per_join": "3K"
              },
              "used_columns": [
                "feature_id",
                "product_id",
                "variant_id",
                "value",
                "value_int",
                "lang_code"
              ]
            }
          },
          {
            "table": {
              "table_name": "pf_groups",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id"
              ],
              "key_length": "3",
              "ref": [
                "gaseus.pf.parent_id"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "19.00",
              "cost_info": {
                "read_cost": "1.08",
                "eval_cost": "0.08",
                "prefix_cost": "8.87",
                "data_read_per_join": "991"
              },
              "used_columns": [
                "feature_id",
                "status",
                "position"
              ],
              "attached_condition": "<if>(found_match(pf_groups), ((`gaseus`.`pf_groups`.`status` = 'A') or (`gaseus`.`pf_groups`.`status` is null)), true)"
            }
          },
          {
            "table": {
              "table_name": "pf_groups_description",
              "access_type": "eq_ref",
              "possible_keys": [
                "PRIMARY"
              ],
              "key": "PRIMARY",
              "used_key_parts": [
                "feature_id",
                "lang_code"
              ],
              "key_length": "9",
              "ref": [
                "gaseus.pf.parent_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.21",
                "eval_cost": "0.08",
                "prefix_cost": "9.16",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "feature_id",
                "description",
                "lang_code"
              ]
            }
          },
          {
            "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": [
                "gaseus.pf.feature_id",
                "const"
              ],
              "rows_examined_per_scan": 1,
              "rows_produced_per_join": 0,
              "filtered": "100.00",
              "cost_info": {
                "read_cost": "0.21",
                "eval_cost": "0.08",
                "prefix_cost": "9.44",
                "data_read_per_join": "1K"
              },
              "used_columns": [
                "feature_id",
                "description",
                "internal_name",
                "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": [
                "gaseus.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.21",
                "eval_cost": "0.08",
                "prefix_cost": "9.73",
                "data_read_per_join": "131"
              },
              "used_columns": [
                "share_company_id",
                "share_object_id",
                "share_object_type"
              ],
              "attached_condition": "(`gaseus`.`cscart_ult_objects_sharing`.`share_object_id` = `gaseus`.`pf`.`feature_id`)"
            }
          }
        ]
      }
    }
  }
}

Result

feature_id company_id feature_type parent_id display_on_product display_on_catalog display_on_header description internal_name lang_code prefix suffix categories_path full_description status comparison position purpose feature_style filter_style feature_code timestamp updated_timestamp group_position value variant_id value_int
595 1 S 0 Y Y N Type of Gas Type of Gas en 272,273,274,283,284,287,288,289,306,307,308,312 A N 1 group_variation_catalog_item dropdown checkbox 1756913989 1771002035 1787
550 1 S 0 Y Y N Product type Product type en 265 A N 10 find_products text checkbox 1742203006 1768926361 1234
628 1 S 0 Y Y N Regulation Type Regulation Type en A N 30 group_variation_catalog_item dropdown checkbox 1756936752 1769182703 1660
624 1 N 0 Y Y N Inlet pressure (max) Inlet pressure (max) en Bar A N 45 group_variation_catalog_item dropdown slider 1756936752 1768999054 1675 40.00
625 1 N 0 Y Y N Outlet pressure Outlet pressure en 0 - Bar A N 46 group_variation_catalog_item dropdown slider 1756936752 1768999225 2173 35.00
553 1 S 0 Y Y N Gas Quality Gas Quality en 265,266,267,271,272,273,274,280,282,283,284,286,287,288,289,306,307,308,270,285,290,291,292,293,294,295,296,299,300,301,302,303,304,305,309,310,311,312 A N 50 group_variation_catalog_item dropdown checkbox 1742203254 1768925346 1912
626 1 N 0 Y Y N Flow rate Flow rate en Nm³/h A N 60 group_variation_catalog_item dropdown slider 1756936752 1768997392 2152 230.00
622 1 S 0 Y Y N Inlet Connection Inlet Connection en A N 90 group_variation_catalog_item dropdown checkbox 1756936752 1768925726 2189
623 1 S 0 Y Y N Outlet Connection Outlet Connection en A N 96 group_variation_catalog_item dropdown checkbox 1756936752 1768926248 2320
605 1 M 0 Y Y N Application Application en A N 100 find_products multiple_checkbox checkbox 1756913989 1768924754 1924
606 1 M 0 Y Y N Class (purpose) Class (purpose) en A N 101 find_products multiple_checkbox checkbox 1756913989 1768924761 2289
627 1 S 0 Y Y N Material Material en A N 105 group_variation_catalog_item dropdown checkbox 1756936752 1769182766 1659
630 1 C 0 Y N N HP Gauge HP Gauge en A N 140 find_products checkbox checkbox 1756936752 1768925645 2250
631 1 S 0 Y N N HP gauge scale HP gauge scale en Bar A N 141 find_products text checkbox 1756936752 1768925658 2190
562 1 T 0 Y Y N W (Width) x H (Height) x D (Depth) Dimensions en mm. 265 A N 194 describe_product text 1742211027 1768926733 90x180x90 0