update blade_fixture set fixture_status = null, in_use = 0 where id in (select btf.fix_id from blade_tray_fixture btf where tray_id in #{trayId} )