SELECT 
obj_main.isys_obj__id AS '__id__', 
obj_main.isys_obj__title AS 'LC__UNIVERSAL__TITLE###0_1', 
j1.isys_cmdb_status__title AS 'LC__UNIVERSAL__CMDB_STATUS###0_1', 
(CASE j2.isys_cats_person_list__disabled_login WHEN 0 THEN 'LC__UNIVERSAL__NO' WHEN 1 THEN 'LC__UNIVERSAL__YES' END) AS 'LC__CONTACT__PERSON_LOGIN_DISABLED###1_50', 
j2.isys_cats_person_list__first_name AS 'LC__CONTACT__PERSON_FIRST_NAME###1_49', 
j2.isys_cats_person_list__last_name AS 'LC__CONTACT__PERSON_LAST_NAME###1_49', 
j2.isys_cats_person_list__custom1 AS 'Custom Display name###1_49', 
j2.isys_cats_person_list__title AS 'LC__CONTACT__PERSON_USER_NAME###1_50', 
job4.isys_obj__title AS 'LC__CONTACT__PERSON_ASSIGNED_ORGANISATION###1_49', 
j5.isys_catg_custom_fields_list__field_content AS 'locales::fmt_date::Eintrittsdatum###4_22', 
j6.isys_catg_custom_fields_list__field_content AS 'locales::fmt_date::Austrittsdatum###4_22' 

 FROM isys_obj AS obj_main 
INNER JOIN isys_cmdb_status AS obj_main_status ON obj_main_status.isys_cmdb_status__id = obj_main.isys_obj__isys_cmdb_status__id 
LEFT JOIN isys_cmdb_status AS j1 ON j1.isys_cmdb_status__id = obj_main.isys_obj__isys_cmdb_status__id 
LEFT JOIN isys_cats_person_list AS j2 ON j2.isys_cats_person_list__isys_obj__id = obj_main.isys_obj__id  
LEFT JOIN isys_connection AS j4 ON j4.isys_connection__id = j2.isys_cats_person_list__isys_connection__id 
LEFT JOIN isys_obj AS job4 ON j4.isys_connection__isys_obj__id = job4.isys_obj__id 
LEFT JOIN isys_catg_custom_fields_list AS ROOT_C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM ON obj_main.isys_obj__id = ROOT_C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM.isys_catg_custom_fields_list__isys_obj__id
                                AND ROOT_C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM.isys_catg_custom_fields_list__isysgui_catg_custom__id = (SELECT isysgui_catg_custom__id FROM isysgui_catg_custom WHERE isysgui_catg_custom__const = 'C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM')
                                AND ROOT_C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM.isys_catg_custom_fields_list__field_type = 'commentary'  LEFT JOIN isys_catg_custom_fields_list AS j5 ON obj_main.isys_obj__id = j5.isys_catg_custom_fields_list__isys_obj__id AND j5.isys_catg_custom_fields_list__field_key = 'c_17628546009944330' 
                                AND j5.isys_catg_custom_fields_list__data__id = ROOT_C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM.isys_catg_custom_fields_list__data__id  
 LEFT JOIN isys_catg_custom_fields_list AS j6 ON obj_main.isys_obj__id = j6.isys_catg_custom_fields_list__isys_obj__id AND j6.isys_catg_custom_fields_list__field_key = 'c_17628546009946731'  AND j6.isys_catg_custom_fields_list__data__id = ROOT_C__CATG__CUSTOM_FIELDS_EIN_UND_AUSTRITTSDATUM.isys_catg_custom_fields_list__data__id  
LEFT JOIN isys_obj_type AS j7 ON j7.isys_obj_type__id = obj_main.isys_obj__isys_obj_type__id 

WHERE TRUE 
 AND  ( (j7.isys_obj_type__id != '60' ) AND (j7.isys_obj_type__id != '63' ) ) AND ( (j7.isys_obj_type__id = '53' ) ) AND ( (j1.isys_cmdb_status__id = '6' ) ) AND ( j2.isys_cats_person_list__disabled_login = '1' )
 ORDER BY obj_main.isys_obj__title DESC