We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Upgrade 2 > 5 Column 'channel_id' in where clause is ambiguous

Development and Programming

icicic's avatar
icicic
8 posts
4 years ago
icicic's avatar icicic

I have managed to upgrade from 2 > 5 successfully, however when trying to edit an entry I get this error:

SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘channel_id’ in where clause is ambiguous: SELECT DISTINCT t.author_id, m.screen_name FROM (exp_channel_titles t) LEFT JOIN exp_members m ON m.member_id = t.author_id WHERE channel_id = 83 ORDER BY screen_name asc

When trying to create a new entry I get this error: Error: Unable to load requested publish tab file: tab.user.php

       
icicic's avatar
icicic
8 posts
4 years ago
icicic's avatar icicic

To fix I simply removed the channel_id field from the exp_members table, it didn’t have any useful info in it (every row was set to ‘0’) and it doesn’t seem to be needed!

I’m not even sure why/how this column was added to the members table, members aren’t really related to channels.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.