Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


ripan

Recommended Posts

plz help me!!!!!!!!!!!!!!!!11

 

As i m new to this oscommerce plz help me to solve this.

 

When i clicking on my categories link on my left column it shows me the error as

 

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

 

i m trying to solve this from last 5 days but i m not getting reed of it.

 

Plz help me!!!!!!!!!!1111

 

I knw that somebdy might have gone thru this error .

 

Plzzzzzzzzzzzzzz plzzzzzzzzzzzzzzzzz help me

 

for reference go thru my site

 

http://www.gifts4gifts.com

 

plzzzzzzzzzzzzzz plzzzzzzzzzzzzzzz help me

Link to comment
Share on other sites

you got a template from templatemonster so this problem usually happens

 

search and replace all the p.products_id = s.products_id with p2c.products_id = s.products_id in your catalog/index.php

 

change

 

// We show them all
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, 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 from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";

 

to

 

// We show them all
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, 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 from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";

Link to comment
Share on other sites

plz help me!!!!!!!!!!!!!!!!11

 

As i m new to this oscommerce plz help me to solve this.

 

When i clicking on my categories link on my left column it shows me the error as

 

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

Take a look at this.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...