In GetPendingIssues, since it's modification to handle multiple borrowersnumbers at a time, there is no check as to whether the borrowernumber array is non-empty; an empty array will result in a malformed SQL query (...WHERE ORDERBY...).
*** This bug has been marked as a duplicate of bug 6280 ***