Rewrite Rules returning wrong data

I did a quick little search on what you are trying to do and maybe this will help you out some and how the rewrite is grabbing the querystrings.

https://stackoverflow.com/questions/3307352/wordpress-custom-url-rewrites