SELECT p.ID,p.post_date,p.post_name,p.post_content,p.post_title,p.post_status,p.post_parent,p.post_type,p.post_excerpt FROM wp_posts AS p WHERE (p.post_type='product' ) AND NOT EXISTS(SELECT pm.meta_value FROM wp_postmeta AS pm WHERE pm.meta_key = '_thumbnail_id' AND pm.post_id = p.ID ) ORDER BY p.ID DESC LIMIT 0,25