956266 - Fixing content views SQL statement

Fixing SQL statement that doesn't work before PostgreSQL 9.1.