If you use SPQuery on any SPlist .. it will bring back results from the current folder only.
If you want to get results from all the folders in the list.. then you need to specify the scope of the query
by the use of ViewAttributes..
e.g. query.ViewAttributes = "Scope=\"Recursive\"";