# Bug OP-6486 - SQL error in work package view

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-6486

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.2.2 |
| Observed in versions | 10.2.0 |
| Sprint | 10.2.2 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

qa.openproject-edge.com

OpenProject 10.2.1 (production)

### **Steps to reproduce:**

1.  Go to project and select work package view.
2.  Filter by priority, add priority column and sort by it.
3.  Group by project.
4.  Save view.
5.  Access view.

![](/api/v3/attachments/16741/content)

### **Actual Behavior**

SQL error shown + view not loaded.

(May happen for attributes other than priority as well.)

### **Expected Behavior**

No error.
