Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help sql5


julinhu00

Recommended Posts

Hi, I'm troubled when I search for product in my store.

the search does not find anything, and sometimes the error ..

can someone help me?

 

 

 

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

 

select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c,products_attributes pa where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%cg%' or p.products_model like '%cg%' or m.manufacturers_name like '%cg%') )

 

[TEP STOP]

Link to comment
Share on other sites

This is a classic symptom of a template using old code being run on a server that has mysql5 installed on it.

 

Apply the mysql 5 patches that can be found by following the links in my signature block and then look in the contributions for instruction on how the fix the code in any contributions that have been installed that have this problem.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...