Hmm, do you get any results from this query?
I'm doing some tests and probably the problem occurs if you have at least
one duplicated index in your database, i.e. when subquery returns anything.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-novice-f2132464.html