pg order by error