Access WordPress query by index number outside the loop

The results of a query are stored as an array in the $posts property of the query object, so you can access the third result like so:

$package_query = new WP_Query( $args )
$third_result  = $package_query->posts[2];

error code: 523