SELECT 
  cscart_profile_fields.*, 
  cscart_profile_field_descriptions.description, 
  cscart_profile_fields.profile_required as required 
FROM 
  cscart_profile_fields 
  LEFT JOIN cscart_profile_field_descriptions ON cscart_profile_field_descriptions.object_id = cscart_profile_fields.field_id 
  AND cscart_profile_field_descriptions.object_type = 'F' 
  AND lang_code = 'vi' 
WHERE 
  1 = 1 
  AND cscart_profile_fields.profile_type = 'U' 
  AND cscart_profile_fields.profile_show = 'Y' 
  AND cscart_profile_fields.field_type != 'E' 
ORDER BY 
  cscart_profile_fields.position

Query time 0.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_profile_fields.position",
        "table": {
          "table_name": "cscart_profile_fields",
          "access_type": "ref",
          "possible_keys": ["profile_show"],
          "key": "profile_show",
          "key_length": "4",
          "used_key_parts": ["profile_show"],
          "ref": ["const"],
          "rows": 29,
          "filtered": 59.18367386,
          "index_condition": "cscart_profile_fields.profile_show = 'Y' and cscart_profile_fields.field_type <> 'E'",
          "attached_condition": "cscart_profile_fields.profile_show <=> 'Y' and cscart_profile_fields.profile_type = 'U'"
        }
      }
    },
    "table": {
      "table_name": "cscart_profile_field_descriptions",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "12",
      "used_key_parts": ["object_id", "object_type", "lang_code"],
      "ref": ["vietpom_dev.cscart_profile_fields.field_id", "const", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(cscart_profile_field_descriptions.object_type = 'F' and cscart_profile_field_descriptions.lang_code = 'vi')"
    }
  }
}

Result

field_id field_name profile_show profile_required checkout_show checkout_required partner_show partner_required storefront_show field_type profile_type position is_default section matching_id class wrapper_class autocomplete_type description required
7 lastname Y N Y N N N Y I U 2 Y C 0 last-name surname Họ N
59 UEN Y N N N N N Y I U 3 N C 0 UEN N
65 pharma_business_license_no Y N N N N N Y I U 3 N C 0 MOH/license no N
60 NATURE_OF_BUSINESS Y N N N N N Y I U 4 N C 0 Nature of Business N
66 tax_id Y N N N N N Y I U 4 N C 0 Tax ID N
61 SPECIALITY Y N N N N N Y I U 5 N C 0 Speciality N
63 STANDARD_OPERATING_HOURS Y N N N N N Y T U 10 N C 0 Standard Operating Hours N
18 b_address Y N Y N N N Y I U 30 Y B 19 billing-address litecheckout__field--xlarge street-address Địa chỉ N
19 s_address Y N Y Y N N Y I U 30 Y S 18 shipping-address litecheckout__field--xlarge shipping street-address Địa chỉ N
9 phone Y Y Y N N N Y P U 40 Y C 0 phone tel Điện thoại Y
20 b_address_2 Y N N N N N Y I U 40 Y B 21 billing-address-line2 address-line2 Địa chỉ N
22 b_city Y N Y N N N Y I U 50 Y B 23 billing-city city Thành phố N
23 s_city Y N Y Y N N Y I U 50 Y S 22 shipping-city city Thành phố N
26 b_country Y N Y N N N Y O U 60 Y B 27 billing-country country Quốc gia N
27 s_country Y N Y Y N N Y O U 60 Y S 26 shipping-country country Quốc gia N
24 b_state Y N Y N N N Y A U 70 Y B 25 billing-state state Bang/Tỉnh N
25 s_state Y N Y Y N N Y A U 70 Y S 24 shipping-state state Bang/Tỉnh N
29 s_zipcode Y N Y Y N N Y Z U 80 Y S 28 shipping-zip-code litecheckout__field--xsmall shipping postal-code Mã Zip/bưu điện N
30 b_phone Y N Y N N N Y P U 90 Y B 31 billing-phone tel Điện thoại N
31 s_phone Y N N N N N Y P U 90 Y S 30 shipping-phone tel Điện thoại N