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, 
  tmall_product_features_descriptions.description, 
  tmall_product_features_descriptions.internal_name, 
  tmall_product_features_descriptions.lang_code, 
  tmall_product_features_descriptions.prefix, 
  tmall_product_features_descriptions.suffix, 
  pf.categories_path, 
  tmall_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, 
  tmall_product_features_values.value, 
  tmall_product_features_values.variant_id, 
  tmall_product_features_values.value_int, 
  abt_filters.filter_id 
FROM 
  tmall_product_features AS pf 
  LEFT JOIN tmall_product_features AS pf_groups ON pf.parent_id = pf_groups.feature_id 
  LEFT JOIN tmall_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 tmall_product_features_descriptions ON tmall_product_features_descriptions.feature_id = pf.feature_id 
  AND tmall_product_features_descriptions.lang_code = 'en' 
  INNER JOIN tmall_product_features_values ON tmall_product_features_values.feature_id = pf.feature_id 
  AND tmall_product_features_values.product_id = 248 
  AND tmall_product_features_values.lang_code = 'en' 
  LEFT JOIN tmall_product_filters AS abt_filters ON abt_filters.feature_id = pf.feature_id 
  AND abt_filters.company_id = pf.company_id 
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.company_id IN (0, 1) 
  AND pf.display_on_product = 'Y' 
  AND (
    pf.categories_path = '' 
    OR ISNULL(pf.categories_path) 
    OR FIND_IN_SET(245, pf.categories_path) 
    OR FIND_IN_SET(248, pf.categories_path) 
    OR FIND_IN_SET(166, pf.categories_path) 
    OR FIND_IN_SET(254, pf.categories_path) 
    OR FIND_IN_SET(263, pf.categories_path) 
    OR FIND_IN_SET(255, 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, 
  tmall_product_features_descriptions.description asc, 
  pf.feature_id asc

Query time 0.00937

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.38972222,
    "filesort": {
      "sort_key": "pf_groups.position, pf_groups_description.description, pf_groups.feature_id, pf.position, tmall_product_features_descriptions.description, pf.feature_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "tmall_product_features_values",
              "access_type": "ref",
              "possible_keys": [
                "PRIMARY",
                "fl",
                "lang_code",
                "product_id",
                "fpl",
                "idx_product_feature_variant_id"
              ],
              "key": "idx_product_feature_variant_id",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "ref": ["const"],
              "loops": 1,
              "rows": 39,
              "cost": 0.048911433,
              "filtered": 99.73403931,
              "attached_condition": "tmall_product_features_values.product_id <=> 248 and tmall_product_features_values.lang_code = 'en'"
            }
          },
          {
            "table": {
              "table_name": "pf",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "status", "company_id"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["feature_id"],
              "ref": ["tmall.tmall_product_features_values.feature_id"],
              "loops": 38.8962766,
              "rows": 1,
              "cost": 0.067457474,
              "filtered": 100,
              "attached_condition": "pf.feature_type <> 'G' and pf.`status` = 'A' and pf.company_id in (0,1) and pf.display_on_product = 'Y' and (pf.categories_path = '' or pf.categories_path is null or find_in_set(245,pf.categories_path) or find_in_set(248,pf.categories_path) or find_in_set(166,pf.categories_path) or find_in_set(254,pf.categories_path) or find_in_set(263,pf.categories_path) or find_in_set(255,pf.categories_path))"
            }
          },
          {
            "table": {
              "table_name": "pf_groups",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["feature_id"],
              "ref": ["tmall.pf.parent_id"],
              "loops": 38.8962766,
              "rows": 1,
              "cost": 0.067457474,
              "filtered": 100,
              "attached_condition": "trigcond(pf_groups.`status` = 'A' or pf_groups.`status` is null)"
            }
          },
          {
            "table": {
              "table_name": "pf_groups_description",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["feature_id", "lang_code"],
              "ref": ["tmall.pf.parent_id", "const"],
              "loops": 38.8962766,
              "rows": 1,
              "cost": 0.067457474,
              "filtered": 100,
              "attached_condition": "trigcond(pf_groups_description.lang_code = 'en')"
            }
          },
          {
            "table": {
              "table_name": "tmall_product_features_descriptions",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["feature_id", "lang_code"],
              "ref": ["tmall.tmall_product_features_values.feature_id", "const"],
              "loops": 38.8962766,
              "rows": 1,
              "cost": 0.067457474,
              "filtered": 100,
              "attached_condition": "trigcond(tmall_product_features_descriptions.lang_code = 'en')"
            }
          },
          {
            "table": {
              "table_name": "abt_filters",
              "access_type": "ref",
              "possible_keys": ["feature_id", "company_id"],
              "key": "company_id",
              "key_length": "5",
              "used_key_parts": ["company_id"],
              "ref": ["tmall.pf.company_id"],
              "loops": 38.8962766,
              "rows": 1,
              "cost": 0.070980893,
              "filtered": 100,
              "attached_condition": "trigcond(abt_filters.feature_id = tmall_product_features_values.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 filter_id
47 0 C 20 Y Y N 3D support 3D support en 248 A N 0 find_products checkbox checkbox 0 0 10 N 0
23 0 S 20 Y Y Y Hard drive Hard drive en 248 A N 0 find_products text checkbox 0 0 10 139
22 0 C 20 Y Y N HD support HD support en 248 A N 0 find_products checkbox checkbox 0 0 10 Y 0
21 0 S 20 Y Y N Type Type en 248 A N 0 find_products text checkbox 0 0 10 137
29 0 S 24 Y Y N CPU CPU en 248 A N 0 find_products text checkbox 0 0 20 144
28 0 S 24 Y Y N CPU speed CPU speed en 248 A N 0 find_products text checkbox 0 0 20 143
26 0 S 24 Y Y N Graphics processor Graphics processor en 248 A N 0 find_products text checkbox 0 0 20 141
25 0 S 24 Y Y N RAM RAM en 248 A N 0 find_products text checkbox 0 0 20 140
27 0 S 24 Y Y N System performance for floating point computation System performance for floating point computation en 248 A N 0 find_products text checkbox 0 0 20 142
36 0 M 33 Y Y N Supported formats Supported formats en 248 A N 0 find_products multiple_checkbox checkbox 0 0 30 155
35 0 M 33 Y Y N Supported storage devices Supported storage devices en 248 A N 0 find_products multiple_checkbox checkbox 0 0 30 150
34 0 C 33 Y Y N Video playback Video playback en 248 A N 0 find_products checkbox checkbox 0 0 30 Y 0
32 0 M 30 Y Y N Communications Communications en 248 A N 0 find_products multiple_checkbox checkbox 0 0 40 148
31 0 M 30 Y Y N Ports Ports en 248 A N 0 find_products multiple_checkbox checkbox 0 0 40 145
42 0 M 40 Y Y N Accessories included Accessories included en 248 A N 0 find_products multiple_checkbox checkbox 0 0 50 156
45 0 S 40 Y Y N Colors Colors en 248 A N 0 find_products text checkbox 0 0 50 161
44 0 M 40 Y Y N Compatibility with console videogames Compatibility with console videogames en 248 A N 0 find_products multiple_checkbox checkbox 0 0 50 160
41 0 T 40 Y Y N Controller included Controller included en 248 A N 0 describe_product 0 0 50 yes, wireless 0
46 0 T 40 Y Y N Features Features en 248 A N 0 describe_product 0 0 50 HDMI; complectation Kinect 2.0 0
43 0 S 40 Y Y N Videogames storage Videogames storage en 248 A N 0 find_products text checkbox 0 0 50 159
38 0 T 37 Y Y N Dimensions (W x H x D) Dimensions (W x H x D) en 248 A N 0 describe_product 0 0 100 343x81x264 mm 0
39 0 T 37 Y Y N Weight Weight en 248 A N 0 describe_product 0 0 100 3.62 kg 0