Here is another problem: you make a query while the toplevel query is still running. This will fail.