Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oscommerce error message, possibly SQl related, please help!


bobbybrown

Recommended Posts

Hey guys,

I've installed OScommerce to my site and got it all up and running, then found an error message.

 

This is the error:

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 = '58'

 

[TEP STOP]

 

I get it when trying to search for something or when clicking on the categories for my products, meaning that noone can access my products!

 

I've tried running querys in phpmyadmin but nothing works, I just get errors saying the fields don't exist.

I don't have a field in the products table called products_d.

 

I'm really confused why its happening, its a totally new fresh install of oscommerce.

 

If someone can help me get this sorted it would be really appreciated, I've tried everything I can think of.

 

Thanks for reading guys.

 

Dan

Link to comment
Share on other sites

Hey guys,

I've installed OScommerce to my site and got it all up and running, then found an error message.

 

This is the error:

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 = '58'

 

[TEP STOP]

 

I get it when trying to search for something or when clicking on the categories for my products, meaning that noone can access my products!

 

I've tried running querys in phpmyadmin but nothing works, I just get errors saying the fields don't exist.

I don't have a field in the products table called products_d.

 

I'm really confused why its happening, its a totally new fresh install of oscommerce.

 

If someone can help me get this sorted it would be really appreciated, I've tried everything I can think of.

 

Thanks for reading guys.

 

Dan

Try this

Link to comment
Share on other sites

There is a contribution that explains how to fix the "left join"/mysql5 problem or there a couple of useful links in my signature block below.

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 ======>>>>>.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...