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' 
  LEFT JOIN cscart_product_features_values ON cscart_product_features_values.feature_id = pf.feature_id 
  AND cscart_product_features_values.product_id = 1321 
  AND cscart_product_features_values.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_code IN ('Brand', 'ISBN', 'GTIN', 'MPN') 
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.00118

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.258262177,
    "filesort": {
      "sort_key": "pf_groups.position, pf_groups_description.description, pf_groups.feature_id, pf.position, cscart_product_features_descriptions.description, pf.feature_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "pf",
              "access_type": "index",
              "possible_keys": ["status"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["feature_id"],
              "loops": 1,
              "rows": 61,
              "cost": 0.0207978,
              "filtered": 100,
              "attached_condition": "pf.feature_type <> 'G' and pf.`status` = 'A' and pf.feature_code in ('Brand','ISBN','GTIN','MPN')"
            }
          },
          {
            "table": {
              "table_name": "pf_groups",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["feature_id"],
              "ref": ["u985510652_ecartify_dev.pf.parent_id"],
              "loops": 61,
              "rows": 1,
              "cost": 0.05538004,
              "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": ["u985510652_ecartify_dev.pf.parent_id", "const"],
              "loops": 61,
              "rows": 1,
              "cost": 0.05538004,
              "filtered": 100,
              "attached_condition": "trigcond(pf_groups_description.lang_code = 'en')"
            }
          },
          {
            "table": {
              "table_name": "cscart_product_features_descriptions",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["feature_id", "lang_code"],
              "ref": ["u985510652_ecartify_dev.pf.feature_id", "const"],
              "loops": 61,
              "rows": 1,
              "cost": 0.05538004,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_product_features_descriptions.lang_code = 'en')"
            }
          },
          {
            "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": "lang_code",
              "key_length": "12",
              "used_key_parts": ["lang_code", "feature_id", "product_id"],
              "ref": ["const", "u985510652_ecartify_dev.pf.feature_id", "const"],
              "rowid_filter": {
                "range": {
                  "key": "product_id",
                  "used_key_parts": ["product_id"]
                },
                "rows": 10,
                "selectivity_pct": 0.201247736
              },
              "loops": 61,
              "rows": 1,
              "cost": 0.071324257,
              "filtered": 0.201247737,
              "attached_condition": "trigcond(cscart_product_features_values.lang_code = 'en')"
            }
          }
        ]
      }
    }
  }
}

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
572 0 T 568 0 0 N Brand en A N 0 Brand 0 0 0
570 0 T 568 0 0 N GTIN en A N 0 GTIN 0 0 0
569 0 T 568 0 0 N ISBN en A N 0 ISBN 0 0 0
571 0 T 568 0 0 N MPN en A N 0 MPN 0 0 0