RPV-462 - fix for messaging 404 for unit staff (due to incorrect sql sta...

...tement generation in UnitDaoImpl.getUnitPatientUsers())