well that has nothing to do with uploading an image I would think
test buy - PhotoPost Classifieds
I replace an image without fail
The query your talking about only happens when you try moving an ad to a different category but the issue I see is where in the world is your category variable being set to avatars? I can not replicate your issue but you can try changing line 22 of image-inc.php to this and see if it helps
Code:
Content visible to verified customers only.