If you think you know WP_Query, watch this talk by Andrew Nacin at WordCamp Portland 2011. Andrew digs through stuff like
pre_get_posts and more. So if you’re still using
query_posts without a good reason, Andy will convince you not to.
You can find the slides on SlideShare. Enjoy!