How do I get all results from my query

You can use posts_per_page to return all post from the database
Just little modification in your WP query

<?php
$query = new WP_Query(array('post_type' => 'any','posts_per_page'=>-1));
?>

Try with this modification if it works for you.