And, also, why not use WP_Query? It has `'fields' => 'ids'`, `post__in` and even `'post_mime_type'`.