search for domain
SELECT * FROM `wp_posts` WHERE `guid` LIKE "http://dev.ceramicartsdaily.org/%" AND `post_type` = 'attachment'