SELECT *, (SELECT COUNT(*) FROM r5documents WHERE doc_rentity='MNBK' AND doc_entitycode=mnb_code) mnb_documents, (SELECT OBJ_DESC FROM R5OBJECTS WHERE OBJ_CODE = MNB_OBJECT AND OBJ_ORG = MNB_ORG) MNB_OBJECT_DESC FROM r5mobilenotebooks where
mnb_createdby = <parameter.r5user>
