select docid from documents where originsite_id = '#val(url.np_code)#' and originsite_type = 'Program' and (title like '%Program summary%' or title like '%program direction%') and published = 'p' and spsysendtime is null select * from nprograms, npstatements where npnumber = #val(url.np_code)# and np_number = npnumber select iswide from docpages, docversions, documents where docid = #val(url.docid)# and docverid = docpages.docver_id and docverid = documents.currentversion_id and iswide = 1 and docpagenum = #val(url.page)#