FROM fnd_atm_attachment_multi m1, fnd_atm_attachment faa
WHERE m1.table_name = 'CON_CONTRACT'
AND m1.attachment_id = faa.attachment_id
AND m1.table_pk_value in
(select pc.check_id
from PRJ_CDD_ITEM_CHECK pc
where pc.cdd_item_id in
(select pi.cdd_item_id
from prj_cdd_item pi
where pi.cdd_item in ('CONTRACT','LEASE_ITEM_REQ','TN_GU_INFO','GUARANTEE_LETTER_OEC','CHECK_INFO','SPOUSE_COMMITMENT','PUR_CONTRACT','CASHFLOW_INFO','ITEM_TRAN_NOTICE','PAYMENT_REQ','MORT_CONTRACT','ET_TREATY')