Querying by lightswitch field type in template I have a field (mdFeatured) set up as a lightswitch field type. I am trying to retrieve both featured and non-featured entries:

{% set featuredEntries = craft.entries.section('merchantDirectory').mdFeatured(true).relatedTo(category).find() %}
{% set normalEntries = craft.entries.section('merchantDirectory').mdFeatured(false).relatedTo(category).find() %}


The featured entries are being retrieved properly, but the normal entries are returning both featured entries and normal entries mixed together. Any possibly know why this is not working? I tried replacing "true" and "false" with "1" and "0" but that did not seem to work either.

Thanks!
You could try looking for an empty string: mdFeatured('') or prefix 1 or true with not: mdFeatured('not 1').