Here\'s my kind-of unique and interesting situation:
I want to query all wordpress attachments (images) that have been used before as thumbnail images. The end result