Yaakov
05/10/2022, 7:05 PMconst order = 'last_name ASC, first_name ASC';
await prisma.$queryRaw`SELECT *
FROM users
ORDER BY ${order}`;
I'm getting this error
`Raw query failed. Code: 1008. Message: `The SELECT item identified by the ORDER BY number 1 contains a variable as part of the expression identifying a column position. Variables are only allowed when ordering by an expression referencing a column name.``
Using SQL ServerAustin
05/10/2022, 9:11 PMYaakov
05/11/2022, 12:26 PM