Fixed unconditional where clause

In Postgres, at least, a where clause of 1 is rejected since it is an integer rather than a boolean.