Cleaning chapter of query_posts in favor of WP_Query looks a little like this.