Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL Error in Products listing


zebby

Recommended Posts

Posted

Hello,

 

while setting up an osc shop the following errors occurs when

browsing the categories.

 

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 = '2' and p2c.categories_id = '30'

 

and the same error about the products_id with the paramter manufacturers_id.

 

On a brand new Installation i'am using MySQL 5.0.15 what is may be the reason.

 

I cant fix this huge sql statements.

 

Is there any help available?

 

Greets Zebby

Posted

i get a similar prob when browsing my site's categories as a user...

 

 

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by pd.products_name' at line 1

 

select count(p.products_id) as total order by pd.products_name

 

[TEP STOP]

 

http://mastershot.tv/shop/index.php

  • 3 weeks later...

Archived

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

×
×
  • Create New...