cancel
Showing results for 
Search instead for 
Did you mean: 

Integrity constraint violation: 1052 Column 'status' in where clause is ambiguous

Integrity constraint violation: 1052 Column 'status' in where clause is ambiguous

Hello Experts,

 

Magento Version: 1.8.1

 

While I check my orders in admin panel at Sales>Orders, I filter orders by status as 'Pending'. Right after that I got error as per below screenshot:

 

error-mag-181.jpg

 

The admin panel is working fine except Sales>Order

 

Please help and suggest.

3 REPLIES 3

Re: Integrity constraint violation: 1052 Column 'status' in where clause is ambiguous

Hello @shikharmagento 

 

Please share the image via an online tool, i can not able to see your screenshot.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Integrity constraint violation: 1052 Column 'status' in where clause is ambiguous

Hi @shikharmagento 

Are you using any custom code to show any additional grid column?

Status is the keyword of sql. 

Make sure that you have used status in quote 

`status` = 'pending'

or use with table name:

sales_flat_order.`status`

because there may be status column in many joined tables. 

 

instead of 

status='pending'


I hope it will help you!

 

Re: Integrity constraint violation: 1052 Column 'status' in where clause is ambiguous

Hello @shikharmagento 

 

as per the screenshot, you edit grid into a local folder

 

app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php file

 

rename that file check it. if you want then find status into that file and change to index of that column e.status or main_table.status, hope it will help you.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer