`sql.join` with `ODER BY` leads to syntax error while the sql query seems correct.
I am conditionally sorting the results from a database query
The query builder returns the following query
Which seems to be correct. When executing the code I get the following
Something seems to be off with
Any help is appreciated
The query builder returns the following query
Which seems to be correct. When executing the code I get the following
PostgresError:Something seems to be off with
'desc' but I don't have a clue what is causing this.Any help is appreciated