# Error 3029: Expression of ORDER BY contains aggregate function and applies to the result of a non-ag

| Error Code | SQLSTATE | Error                                 | Description                                                                                                |
| ---------- | -------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| 3029       |          | ER\_AGGREGATE\_ORDER\_NON\_AGG\_QUERY | Expression #%u of ORDER BY contains aggregate function and applies to the result of a non-aggregated query |

## Possible Causes and Solutions

{% hint style="success" %}
This article doesn't currently contain any content. [You can help!](https://app.gitbook.com/s/WCInJQ9cmGjq1lsTG91E/about/readme/contributing-documentation)
{% endhint %}

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
