use '0' as string in raw query for postgres consistency
Merge pull request #1126 from simod/master

fix the "operator does not exist: boolean = integer" error