SELECT  lv1_code AS code,
lv1_desc AS description,
lv1_org AS organization
FROM r5level1
WHERE lv1_rstatus IN ( 'B', 'C', 'CIR', 'CRR', 'I' )
AND lv1_notused = '-'
AND EXISTS ( SELECT 1 FROM r5userorganization WHERE uog_org = lv1_org AND uog_user = <parameter.r5user> AND ( uog_common  = '+' OR uog_org = <control.org> ) )

