2
The UID= (nothing) is where the error is. Since I have no idea where the query is made, it's very hard to say how to solve it. Does the 4Images gallery have any core kernel and include files hacked? Hmm.. perhaps if you did overwrite those folders it will work. And if not, you can always overwrite them with the 2.0.7.3 originals again (thus restoring the current situation).
Herko