fix filter for boolean fields
Merge pull request #122 from nykopol/fix_boolean_filter

Fix invalid SQL with boolean filters