# Error ordering a query using postgreSQL via parse-platform and parse-server

**URL:** <https://community.parseplatform.org/t/error-ordering-a-query-using-postgresql-via-parse-platform-and-parse-server/1944>\
**Category:** Parse Server 📡\
**Tags:** postgres\
**Created:** [August 30, 2021, 7:17pm UTC](https://community.parseplatform.org/t/error-ordering-a-query-using-postgresql-via-parse-platform-and-parse-server/1944 "2021-08-30T19:17:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADSRP](https://community.parseplatform.org/user_avatar/community.parseplatform.org/adsrp/32/774_2.png) [@ADSRP](https://community.parseplatform.org/u/ADSRP)\
**Post date:** [August 30, 2021, 7:17pm UTC](https://community.parseplatform.org/t/error-ordering-a-query-using-postgresql-via-parse-platform-and-parse-server/1944/1 "2021-08-30T19:17:27Z")

</div>

I have a doubt about an error in the query with postgreSQL, when I do a select, giving an includekey in another one table, to sort by a data that is in this other table returns the error:

No operator matches the given name and argument types. You might need to add explicit type casts.

And on the server: error: Parse error: error: operator does not exist: text → unknown {“code”:1,“stack”:"Error: error: operator does not exist: text → unknown\n

the code is like this: -\>ascending(“pessoa.nome”);

### Environment Details

- PHP Version: 7.3.29
- Parse PHP SDK Version: 1.6
- Parse-server: 4.10.2
- Operating System: Windows 10

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [August 30, 2021, 10:31pm UTC](https://community.parseplatform.org/t/error-ordering-a-query-using-postgresql-via-parse-platform-and-parse-server/1944/2 "2021-08-30T22:31:07Z")

</div>

I believe that ordering by an inner column is not yet supported.
