Fix query for determining borrower number based on barcode