Last week I had some problems with an Sitecore Query. It didn't show more than an fixed number of items. After some hard thinking I rembered that there is a web.config key called Query.MaxItem which, you might guessed it, controls the maximum number of results of an Sitecore Query.
Maximum number of Sitecore query items
Published on November 5, 2008