Test on 1.4.4, when there is garbage data (records exist in image table but not in album table) and search criteria hit them, the search function will fail (the sql query assume the images.albumid is valid)
It could be fixed by perform a database refresh.
Comments
Of course, it is best to remove things via Zenphoto in the first place, then you do not get into this sitation.
I think it should add a checking on the Image table query result set, then it could be fixed.