query.php error


Im using version 3.0.3 of the Pro Sites plugin and wp version 3.2.1

I get this error when I activate the plugin: Fatal error: Call to a member function get_queried_object_id() on a non-object in /public_html/wp-includes/query.php on line 58

I get this error on the places where I have a WP_Query in the code. for example:

$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query('posts_per_page=3');

If I remove the query the site does load. How can I fix this?