SELECT sd.param_id, sd.param, tmall_static_data_descriptions.descr, sd.param_2, sd.param_3, sd.param_4, sd.param_5, sd.param_6, sd.status, sd.position, sd.parent_id, sd.id_path, sd.class, tmall_static_data_descriptions.ab__fn_label_show, tmall_static_data_descriptions.ab__fn_label_text, sd.ab__fn_label_color, sd.ab__fn_menu_status, sd.ab__fn_label_background, sd.ab__fn_use_origin_image, sd.abt__ut2_mwi__status, tmall_static_data_descriptions.abt__ut2_mwi__label, sd.abt__ut2_mwi__label_color, sd.abt__ut2_mwi__label_background, tmall_static_data_descriptions.abt__ut2_mwi__desc, tmall_static_data_descriptions.abt__ut2_mwi__text, sd.abt__ut2_mwi__text_position, sd.abt__ut2_mwi__dropdown FROM tmall_static_data AS sd LEFT JOIN tmall_static_data_descriptions ON sd.param_id = tmall_static_data_descriptions.param_id AND tmall_static_data_descriptions.lang_code = 'en' WHERE sd.section = 'A'  AND sd.status = 'A' AND sd.param_5 = '5' ORDER BY sd.position

Query is invalid

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.299460319,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "sd.position",
            "table": {
              "table_name": "sd",
              "access_type": "ALL",
              "possible_keys": ["section"],
              "loops": 1,
              "rows": 115,
              "cost": 0.028502975,
              "filtered": 99.13043213,
              "attached_condition": "sd.section = 'A' and sd.`status` = 'A' and sd.param_5 = '5'"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "tmall_static_data_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["param_id", "lang_code"],
          "ref": ["tmall.sd.param_id", "const"],
          "loops": 114,
          "rows": 1,
          "cost": 0.197313764,
          "filtered": 100,
          "attached_condition": "trigcond(tmall_static_data_descriptions.lang_code = 'en')"
        }
      }
    ]
  }
}