select 
aip_blind_inventory as AIP_BLIND_INVENTORY,
aip_code as AIP_CODE,
aip_created as AIP_CREATED,
aip_desc as AIP_DESC,
aip_move_wo as AIP_MOVE_WO,
aip_obj_parent as AIP_OBJ_PARENT,
aip_obj_parent_org as AIP_OBJ_PARENT_ORG,
aip_obj_type as AIP_OBJ_TYPE,
aip_person as AIP_PERSON,
aip_rstatus as AIP_RSTATUS,
aip_sessionid as AIP_SESSIONID,
aip_standwork as AIP_STANDWORK,
aip_status as AIP_STATUS,
aip_update_physical_location as AIP_UPDATE_PHYSICAL_LOCATION,
aip_user as AIP_USER, 
aip_parent_store as AIP_PARENT_STORE
FROM r5assetinventoryparams  WHERE aip_sessionid is not null AND EXISTS            
  (  SELECT 1 FROM r5personnel WHERE per_user = <parameter.r5user>                      
  AND aip_person = per_code) AND aip_rstatus = 'U'  