Updated case query for query on live data.
Merge pull request #1779 from setowns1/bug

Updated case query for query on live data.