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 = 'ar' 
WHERE 
  1 = 1 
  AND cscart_profile_fields.profile_type = 'U' 
  AND cscart_profile_fields.profile_show = 'Y' 
  AND (
    cscart_profile_fields.field_type != 'E' 
    OR cscart_profile_fields.section != 'C' 
    AND cscart_profile_fields.field_type = 'E'
  ) 
ORDER BY 
  cscart_profile_fields.position

Query time 0.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "3.11"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_profile_fields",
            "access_type": "ref",
            "possible_keys": [
              "profile_show"
            ],
            "key": "profile_show",
            "used_key_parts": [
              "profile_show"
            ],
            "key_length": "4",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 16,
            "rows_produced_per_join": 1,
            "filtered": "9.09",
            "index_condition": "((`betaatif_store`.`cscart_profile_fields`.`field_type` <> 'E') or (`betaatif_store`.`cscart_profile_fields`.`field_type` = 'E'))",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.15",
              "prefix_cost": "2.60",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "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"
            ],
            "attached_condition": "((`betaatif_store`.`cscart_profile_fields`.`profile_type` = 'U') and ((`betaatif_store`.`cscart_profile_fields`.`field_type` <> 'E') or ((`betaatif_store`.`cscart_profile_fields`.`section` <> 'C') and (`betaatif_store`.`cscart_profile_fields`.`field_type` = 'E'))))"
          }
        },
        {
          "table": {
            "table_name": "cscart_profile_field_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "object_type",
              "lang_code"
            ],
            "key_length": "12",
            "ref": [
              "betaatif_store.cscart_profile_fields.field_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.36",
              "eval_cost": "0.15",
              "prefix_cost": "3.11",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "object_id",
              "description",
              "object_type",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

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
6 firstname Y N Y N N N Y I U 10 Y C 0 first-name given-name الإسم الأول N
7 lastname Y N Y N N N Y I U 20 Y C 0 last-name surname إسم العائلة 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 العنوان N
9 phone Y N Y N N N Y P U 40 Y C 0 phone tel الهاتف N
23 s_city Y N Y Y N N Y I U 50 Y S 22 shipping-city city المدينة N
27 s_country Y N Y Y N N Y O U 60 Y S 26 shipping-country country الدولة N
25 s_state Y N Y Y N N Y A U 70 Y S 24 shipping-state state المحافظة 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 الرمز البريدي N