osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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

This is a discussion on Another 1054 - Unknown column 'p.products_id' in 'on clause' Error within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi all Running Oscmax v2.0 RC3 and my host decided to upgrade to MySQL5 without warning! As a result I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-26-2008, 07:17 PM
Lurker
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lonny is on a distinguished road
Default Another 1054 - Unknown column 'p.products_id' in 'on clause' Error

Hi all

Running Oscmax v2.0 RC3 and my host decided to upgrade to MySQL5 without warning!

As a result I have problems with the search function on my site. The error message I get is:

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

select count(distinct p.products_id) as total from (products p left join products_to_products_extra_fields p2pef on p.products_id=p2pef.products_id) left join manufacturers m on m.manufacturers_id=p.manufacturers_id, products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c, products_extra_fields pef where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%grey%' or p.products_model like '%grey%' or m.manufacturers_name like '%grey%' or p2pef.products_extra_fields_value like '%grey%') ) and find_in_set('0', products_hide_from_groups) = 0 and find_in_set('0', categories_hide_from_groups) = 0


I have tried every fix I can find but nothing seems to work - the files I worked on were index.php and advanced_search_result.tpl.php

I also have the products extra fields contribution installed.

There was a problem with the articles but I managed to fix that with no problems.

Can anyone help as this is driving me nuts!

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 08-26-2008, 07:46 PM
Lurker
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Lonny is on a distinguished road
Default Re: Another 1054 - Unknown column 'p.products_id' in 'on clause' Error

Don't worry - fixed it myself.

It was in the advanced_search_result.tpl.php round line 132 in my version. Here is what I did in case anyone else has this problem:

Quote:
$from_str = "from (((" . TABLE_PRODUCTS . " p) left join " . TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS . " p2pef on p.products_id=p2pef.products_id) left join " . TABLE_MANUFACTURERS . " m on m.manufacturers_id=p.manufacturers_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd) left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_CATEGORIES . " c, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Error Message - 1054 - Unknown column 'p.products_id' in 'on clause' michael_s New osCommerce Contributions 0 07-30-2008 10:50 PM
Error Message - 1054 - Unknown column 'p.products_id' in 'on clause' michael_s New osCommerce Contributions 1 07-19-2008 09:38 PM
Error Message - 1054 - Unknown column 'p.products_id' in 'on clause' michael_s New osCommerce Contributions 0 12-24-2007 11:35 PM
1054 - Unknown column 'p.products_id' in 'on clause' starview osCommerce 2.2 Discussion 1 08-16-2007 06:44 AM
Error Message - 1054 - Unknown column 'p.products_id' in 'on clause' michael_s New osCommerce Contributions 0 03-27-2007 03:21 AM


All times are GMT -8. The time now is 11:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax