This hook is called after the query variable object is created, but before the actual query is run.
If you don't have a choice, and you have to run custom queries, do it with WP_Query or get_posts instead of query_posts.