Jump to content
Sign in to follow this  
dsiew

Categories Error

Recommended Posts

Hi all,

 

I have an error when I click on the categories menu. Can anyone help?

 

 

 

 

1054 - Unknown column 'p.products_id' in 'on clause'

 

select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '53'

 

[TEP STOP]

 

 

 

Thanks

Share this post


Link to post
Share on other sites
Hi all,

 

I have an error when I click on the categories menu. Can anyone help?

 

 

 

 

1054 - Unknown column 'p.products_id' in 'on clause'

 

select count(p.products_id) as total

from products_description pd
, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '53'

 

[TEP STOP]

 

 

 

Thanks

 

 

Look at "from products_description pd " .

 

remove the "pd" at the end of the products description.

 

Think that might work

 

Cheers

Share this post


Link to post
Share on other sites

Suspect this is more code for mysql4 running on a server running mysql5.

 

See the mysql5 incompatabilities link in my signature block


Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×