Have a look at this:
http://www.mikechick.net/2008/07/fix...n-query-posts/
Make sure you run get_query_var() before ANY query_posts on the page though.
heres a sniplet of code from that page:
Code:
<?php
$limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('showposts=' . $limit . '&paged=' . $paged .'&cat=-166,-167,-168');
$wp_query->is_archive = true; $wp_query->is_home = false;
?>
<?php if (have_posts()) : ?>
..I'm not sure what the go is with people wraping booleans in () though, I also like the array style calling..
Code:
$page = get_query_var('paged') ? get_query_var('paged') : 1;
query_posts(
array( 'showposts' => get_option('posts_per_page'),
'paged' => $page,
'cat' => array(-166, -167, -168)
) );