At the least this sounds like an unfriendly error message:
postgres=# select 1 order by 1;ERROR: could not find pathkey item to sort
-- Gregory Stark EnterpriseDB http://www.enterprisedb.com