Fixed false in a predicate to generate the correct sql