Zen Cart Logo
Forums / General Questions / 1054 Unknown column error

1054 Unknown column error

Locked

Views: 1,124

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Sep 2008, 11:17 AM
#1
godin5150 avatar

godin5150

New Zenner

Join Date:
Apr 2006
Location:
Texas
Posts:
37
Plugin Contributions:
0

1054 Unknown column error

My host changed to a new server and now I'm getting this error on one of my zencart sites:

1054 Unknown column 'c.parent_id' in 'on clause'
in:
[SELECT c.categories_id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName FROM categories c, categories_description cd LEFT JOIN categories_description cd2 ON c.parent_id=cd2.categories_id AND cd2.language_id='1' WHERE c.categories_id='116' AND cd.categories_id='116' AND cd.language_id='1' LIMIT 1]

The site is http://megaturnkeys.com

My host says its the script and they don't offer support for zencart, I don't think its the script because I have several other zencart sites that are working just fine. I actually copied this site to another and the other one is working fine.

I appreciate any help or advise.

26 Sep 2008, 12:05 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 1054 Unknown column error

Did you review the Similar Threads at the bottom of this page?

30 Sep 2008, 3:38 AM
#3
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: 1054 Unknown column error

I'm assisting someone right now with that same error message. I have reviewed the responses and some speak to data base corruption.

The error seems to indicate that you'd want to check out the parent_id on the category table. I've done that and it's there, any other suggestions?

1054 Unknown column 'c.parent_id' in 'on clause'
in:
[SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName FROM zen301_categories c, zen301_categories_description cd LEFT JOIN zen301_categories_description cd2 ON c.parent_id=cd2.categories_id AND cd2.language_id='1' WHERE c.categories_id=cd.categories_id AND cd.language_id='1']

FYI, things were working fine a few days ago; they are saying it's the Ultimate SEO url's module but once I disable it and clear the cache that should fix it shouldn't it? Also, just for more information, the hosting provider is Wired Tree

30 Sep 2008, 5:03 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: 1054 Unknown column error

what version of the cart
what version of mysql

also if using seo urls turn OFF the display category