SELECT arf.*,
(select rc.reagent_consumable_name
from reagent_consumables rc
where rc.reagent_consumable_id = arf.reagent_consumable_id) as reagent_consumable_name,
(select si.supplier_name
from supplier_information si
where si.supplier_information_id = arf.supplier_id) as supplier_name,
(SELECT user.name
FROM dlp_base.sys_user user
WHERE user.user_id=arf.primary_auditor_id
) AS primary_auditor_name,
(SELECT user.name
FROM dlp_base.sys_user user
WHERE user.user_id=arf.secondary_auditor_id
) AS secondary_auditor_name,
(SELECT user.name
FROM dlp_base.sys_user user
WHERE user.user_id=arf.three_level_auditor_id
) AS three_level_auditor_name
FROM acceptance_record_form arf