select sma.*, (select rc.reagent_consumable_name from reagent_consumables rc where rc.reagent_consumable_id = sma.reference_substance_id) as reference_substance_name, (SELECT user.name FROM dlp_base.sys_user user WHERE user.user_id=sma.recipient_id ) AS recipient_name from standard_material_application sma