fix bad couch query
Merge pull request #507 from dimagi/cz

fix bad couch query (Case:64202)