this actually fixes a problem with transcripts; I'd love to know how...

Ok David, this fix actually solves one of the problems I was having on report generation, specifically, I was getting this error:

```
ProgrammingError: operator does not exist: boolean = integer
```

So, I made the logical assumption that postgres wasn't properly assuming `1` as boolean, which is strange to me. It is worth noting that when using MySQL I get no such error...