BUG FIX for Column borrowernumber in where clause is ambiguous