When querying for boolean fields, use "<> 0" to retrieve TRUE values and " = 0" to return FALSE values.