Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product New


jal2007

Recommended Posts

Hi,

 

When someone tries to access catalog/products_new.php, there is an error comes up.

 

The error is:

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

 

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

 

 

Also, we installed the printable catalog which we got the same error

 

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

 

select distinct p.products_id, p.products_image, p.products_model, p.products_quantity, p.products_weight, pd.products_name, p.manufacturers_id, p.products_price, p.products_date_added, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price, m.manufacturers_name, pd.products_description, cd.categories_name, p.products_tax_class_id, p2c.categories_id from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join categories_description cd on p2c.categories_id = cd.categories_id 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 cd.language_id = '1' order by cd.categories_name, pd.products_name

 

 

 

Any idea how to fix these scripts??

 

Thanks

 

Regards,

Jal2007

Link to comment
Share on other sites

backup your products_new.php use the one from the stock osc and test it; if it works see if the manual instructions of the stock osc documentation for the mysql5.x queries and apply the changes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...