I ran into a rather simple error today while attempting to query a list using CAML. When I used SPQuery to query a list for particular items, all the items in the list was getting returned. I found out why !
I forgot to take off the Query element tag off the CAML before using it running an SPQuery on a list.