Use correctly where clause in QueryBuilder