diff --git a/frappe/database/query.py b/frappe/database/query.py index db160ef1da..18ca931bda 100644 --- a/frappe/database/query.py +++ b/frappe/database/query.py @@ -328,7 +328,7 @@ class Engine: warnings.warn( ( "ORDER BY fields have been ignored because PostgreSQL requires them to " - "appear in the SELECT list when using DISTINCT or GROUP BY." + "appear in the SELECT list when using with DISTINCT" ), UserWarning, stacklevel=2,