SELECT pc.*, (SELECT user.name FROM dlp_base.sys_user user WHERE user.user_id = pc.primary_auditor_id) AS primary_auditor_name , ( SELECT user.name FROM dlp_base.sys_user user WHERE user.user_id=pc.secondary_auditor_id ) AS secondary_auditor_name FROM purchase_catalogue pc SELECT pc.*, (SELECT user.name FROM dlp_base.sys_user user WHERE user.user_id = pc.primary_auditor_id) AS primary_auditor_name , ( SELECT user.name FROM dlp_base.sys_user user WHERE user.user_id=pc.secondary_auditor_id ) AS secondary_auditor_name FROM purchase_catalogue pc WHERE pc.purchase_catalogue_id = #{purchaseCatalogueId}