ORDER BY phrases cannot be used in subqueries (although ORDER BY phrases can still be used in outer queries that contain subqueries). Subqueries in SELECT or WHERE clauses that return more than one ...
I have a mariadb based database that has a few tables and I use subqueries. After migrating to gorm2, I noticed that the generated subquery string is syntactically incorrect and hence it fails. To be ...