Fix bug with WHERE queries of >= 4 clauses

The parser was throwing an error on queries with >= 4 clauses. I found the problem: I was treating a seq like a function, trying to access it without using nth.