Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1054 - Unknown column 'p.products_id' in 'on clause' (tried the know 1050 fixes)


ggntt

Recommended Posts

Hi All

 

We tried the 1050 fixes for Mysql V5 but no good. (index.php and advanced_search.php)

 

When we click the link below we still get the 1050 error

 

Anyone have a fix for this please?

 

Thanks

ggntt

 

 

http://www.cellbusters.com/product_info.ph...;products_id=28

 

select pd.products_name, p.products_model, p.products_image, p.products_id, p.manufacturers_id, p.products_price, p.products_weight, p.products_price1,p.products_price2,p.products_price3,p.products_price4, p.products_price1_qty,p.products_price2_qty,p.products_price3_qty,p.products_pri

ce4_qty, p.products_qty_blocks, 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 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 = '28' and pd.products_id = '28' and pd.language_id = '1'

Link to comment
Share on other sites

very easy to fix, add the products_id to products table.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Hi guys,

 

Thats for the posts

 

I must be missing something.

 

The products_id field is already in the products table.

 

I have applied the mysql5 fixes (as far as I understand) (i.e. made the change to index.php and advance_search_results.php)

 

Any ideas (please be as detailed as you can with the answers, i have not been on the forums for a long time and not familiar with everything)

 

Thanks

G

Link to comment
Share on other sites

try this (backup first cause i'm far from an expert with this):

 

select pd.products_name, p.products_model, p.products_image, p.products_id, p.manufacturers_id, p.products_price, p.products_weight, p.products_price1,p.products_price2,p.products_price3,p.products_price4, p.products_price1_qty,p.products_price2_qty,p.products_price3_qty,p.products_pri

ce4_qty, p.products_qty_blocks, 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 ((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 = '28' and pd.products_id = '28' and pd.language_id = '1'

Link to comment
Share on other sites

I am into this problem too. I have replace the Ian's code to product_info.php in the area of,

 

  } else {
$product_info_query = tep_db_query("I PUT THE CODE HERE" . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);

 

But the problem still the same. Take a look at my shop http://www.sultrysutera.com/shop/index.php?cPath=30_36

 

Thanks.

Link to comment
Share on other sites

Hi All

 

We tried the 1050 fixes for Mysql V5 but no good. (index.php and advanced_search.php)

 

When we click the link below we still get the 1050 error

 

Anyone have a fix for this please?

 

Thanks

ggntt

 

 

http://www.cellbusters.com/product_info.ph...;products_id=28

 

select pd.products_name, p.products_model, p.products_image, p.products_id, p.manufacturers_id, p.products_price, p.products_weight, p.products_price1,p.products_price2,p.products_price3,p.products_price4, p.products_price1_qty,p.products_price2_qty,p.products_price3_qty,p.products_pri

ce4_qty, p.products_qty_blocks, 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 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 = '28' and pd.products_id = '28' and pd.language_id = '1'

 

The 1054 PHP5/MySQL5 issue has been solved many a times in forum try to search forums before posting

Try searching 1054 in forum.

Making ERROR is Human So Please BACKUP

Shantnu

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...