Could not connect: ERROR: syntax error at or near "ORDER" LINE 18: ..._oid = person.person_id WHERE project.project_id= ORDER BY s... ^