SELECT sd.param_id, sd.param, cscart_static_data_descriptions.descr, sd.param_2, sd.param_3, sd.param_4, sd.param_5, sd.status, sd.position, sd.parent_id, sd.id_path, sd.class, cscart_static_data_descriptions.ab__fn_label_show, cscart_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, cscart_static_data_descriptions.abt__ut2_mwi__label, sd.abt__ut2_mwi__label_color, sd.abt__ut2_mwi__label_background, cscart_static_data_descriptions.abt__ut2_mwi__desc, cscart_static_data_descriptions.abt__ut2_mwi__text, sd.abt__ut2_mwi__text_position, sd.abt__ut2_mwi__dropdown FROM cscart_static_data AS sd LEFT JOIN cscart_static_data_descriptions ON sd.param_id = cscart_static_data_descriptions.param_id AND cscart_static_data_descriptions.lang_code = 'da' WHERE sd.section = 'A'  AND sd.status = 'A' AND sd.param_5 = '2' ORDER BY sd.position

Query is invalid

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "12.46"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "sd",
            "access_type": "ref",
            "possible_keys": [
              "section"
            ],
            "key": "section",
            "used_key_parts": [
              "section",
              "status"
            ],
            "key_length": "6",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 28,
            "rows_produced_per_join": 2,
            "filtered": "10.00",
            "index_condition": "((`eshopuga_upgr_4122`.`sd`.`section` <=> 'A') and (`eshopuga_upgr_4122`.`sd`.`status` <=> 'A'))",
            "cost_info": {
              "read_cost": "3.50",
              "eval_cost": "0.56",
              "prefix_cost": "9.10",
              "data_read_per_join": "16K"
            },
            "used_columns": [
              "param_id",
              "param",
              "param_2",
              "param_3",
              "param_4",
              "param_5",
              "section",
              "status",
              "position",
              "parent_id",
              "id_path",
              "class",
              "abt__ut2_mwi__status",
              "abt__ut2_mwi__text_position",
              "abt__ut2_mwi__dropdown",
              "abt__ut2_mwi__label_color",
              "abt__ut2_mwi__label_background",
              "ab__fn_menu_status",
              "ab__fn_label_color",
              "ab__fn_label_background",
              "ab__fn_use_origin_image"
            ],
            "attached_condition": "(`eshopuga_upgr_4122`.`sd`.`param_5` = '2')"
          }
        },
        {
          "table": {
            "table_name": "cscart_static_data_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "param_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "eshopuga_upgr_4122.sd.param_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.80",
              "eval_cost": "0.56",
              "prefix_cost": "12.46",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "param_id",
              "lang_code",
              "descr",
              "abt__ut2_mwi__desc",
              "abt__ut2_mwi__text",
              "abt__ut2_mwi__label",
              "ab__fn_label_text",
              "ab__fn_label_show"
            ]
          }
        }
      ]
    }
  }
}