no sorry none of those would be useful in any manner to our discussion.
Basically what I am saying is the only way this is going to happen is if a bot is playing with urls I would think. I dont see anywhere in the actual program we are passing an empty ppuser statement. JacobG Gallery - Wood Carving Illustrated Photo Gallery
Thats a members gallery link in your program - Wood Carving Illustrated Photo Gallery
I can do something like this and I dont see errors so the issue really is how is this error happening. The problem has to be generated someway through showgallery that much I know because that query is only issued one place and only if ppuser exists. Thats what I really mean by changing to display the error and not email it. You then can try and click links like that and see if you can replicate the issue.
I sure cant on your site.