Corrected bug in sql for getting related loans list
Corrected bug in sql for getting related loans list

- A missing space before the where was leading to failure when user was different from admin

refs #1959

naturalsciences/Darwin,naturalsciences/Darwin,naturalsciences/Darwin