Change Songbook bug

Got this message:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /data/www/guitar/include/functions.inc on line 276

mySql reports:

This query was executed:

select songbookname from songbookadmin where owner=‘James McCormick’ order by songbookname

Was trying to add a selection into one of my songbooks.  The last songbook I had accessed was not the one I wanted to put my selection into - hit the ‘change songbook’ button and got the message above.

This has happened before, but I hadn’t thought of reporting this bug before.