Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1064 - You have an error in your SQL syntax


shayrgob

Recommended Posts

I installed the Year, Make, Model contribution to my site and when I put in the years (e.g. 2001-2005) for a particular product the site gives me an error. IT happens after I update the product and go to the main page. Here is the error:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and p.products_id = p2c.products_id and p.products_status = '1' and p2c.categ' at line 1

 

select count(*) as total from products p, products_to_categories p2c where p.products_id in () and p.products_id = p2c.products_id and p.products_status = '1' and p2c.categories_id = '21'

 

 

My site is http://www.importwerks.com

 

I have no clue when it comes to mysql so any help is appreciated!

 

thanks!

Link to comment
Share on other sites

I have no clue when it comes to mysql so any help is appreciated!

The problem is that there is nothing in between those brackets p.products_id in ()

Normally, this is a comma separated list of integers like (1, 4, 7, 8).

 

Since this error is specific to that contribution nothing much can be said about it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...