Fixed parsing of where clauses.

Added second where clause in test