WP_Query returning no results

you might also need to set the ‘post_type’ in $the_args, and possibly the ‘posts_per_page’;
http://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters

example:

    // WP_Query arguments
    $the_args = array (
      'post__in' => $results,
  'post_type' => array( 'any' ),
  'posts_per_page' => 10
    );

error code: 523