Some pages give multiple message_die errors in the albums section. Also here on this site. From the profile of a user, clicking on the 'Personal Gallery of xxx' when no gallery has been created. For example I don't have a gallery, so my profile will show the problem to other 'normal' users. If you're the owner of the gallery or an admin, you won't see the error page.
This is therefore a permissions problem, and I'm not sure how to go about resolving the problem.
What I do know though is that this occurs with Debug on, and is triggered by calling the sql_db->sql_error() function.
Newbie question - how do you switch Debug OFF? Couldn't find the right button in the ACP.

Screenshot:

This same condition occurs on the album_modcp.php page if you click one of the 'Move', 'Block', 'Delete', 'Approve', or 'Refuse' buttons without having selected any image.
Screenshots:


Any help greatly appreciated...
John