This is a shower thought, so might not be valid. Any values that are passed to a query as a bool should be cast to an int, as SQL only understands ints. That is all.