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, 
  csscart_product_features_descriptions.description, 
  csscart_product_features_descriptions.internal_name, 
  csscart_product_features_descriptions.lang_code, 
  csscart_product_features_descriptions.prefix, 
  csscart_product_features_descriptions.suffix, 
  pf.categories_path, 
  csscart_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 
FROM 
  csscart_product_features AS pf 
  LEFT JOIN csscart_product_features AS pf_groups ON pf.parent_id = pf_groups.feature_id 
  LEFT JOIN csscart_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 csscart_product_features_descriptions ON csscart_product_features_descriptions.feature_id = pf.feature_id 
  AND csscart_product_features_descriptions.lang_code = 'en' 
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.feature_type IN ('E') 
ORDER BY 
  group_position asc, 
  pf_groups_description.description asc, 
  pf_groups.feature_id asc, 
  pf.position asc, 
  csscart_product_features_descriptions.description asc, 
  pf.feature_id asc

Query time 0.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.22"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "pf",
            "access_type": "ALL",
            "possible_keys": [
              "status"
            ],
            "rows_examined_per_scan": 35,
            "rows_produced_per_join": 3,
            "filtered": "9.71",
            "cost_info": {
              "read_cost": "8.91",
              "eval_cost": "0.68",
              "prefix_cost": "9.59",
              "data_read_per_join": "1K"
            },
            "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": "((`demoecarter_pos`.`pf`.`status` = 'A') and (`demoecarter_pos`.`pf`.`feature_type` = 'E'))"
          }
        },
        {
          "table": {
            "table_name": "pf_groups",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "demoecarter_pos.pf.parent_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "19.00",
            "cost_info": {
              "read_cost": "3.40",
              "eval_cost": "0.13",
              "prefix_cost": "13.67",
              "data_read_per_join": "284"
            },
            "used_columns": [
              "feature_id",
              "status",
              "position"
            ],
            "attached_condition": "<if>(found_match(pf_groups), ((`demoecarter_pos`.`pf_groups`.`status` = 'A') or isnull(`demoecarter_pos`.`pf_groups`.`status`)), 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": [
              "demoecarter_pos.pf.parent_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.65",
              "eval_cost": "0.13",
              "prefix_cost": "14.45",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "csscart_product_features_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "demoecarter_pos.pf.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.65",
              "eval_cost": "0.13",
              "prefix_cost": "15.22",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "internal_name",
              "full_description",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

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
18 0 E 0 N N Y Brand Brand en A N 0 organize_catalog brand checkbox 0 0