I tried that but it didnt seem to work, I managed to find a way though.
Code:
Content visible to verified customers only.
Added the lastimageusername to the query and use that. As I only allow member galleries and they can only upload images to their own galleries this works fine