Complex queries not being built into querystring. Fixed.