Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

1064 - You have an error in your SQL syntax (FOR PRODUCTS)


Recommended Posts

Hey all! I am working on getting a template up and going and im having only one last issue and that is i keep getting a SQL santax error. I have read the fix listed on another post and it didnt work. I think its cause that fix is for santax errors dealing with the manufacture not the product its self. Here is what the error is


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 'selectp.products_image, pd.products_name,p.products_id, p.manufa


selectp.products_image, pd.products_name,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 products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s onp.products_id = s.products_id wherep.products_status = '1' andp.products_id = p.products_id and pd.products_id = p.products_id and pd.language_id = '1' and p2c.categories_id = '61' order byp.products_date_added DESC limit 2




what do i need to do?


PS i am running PHP 4 and mySQL 4.1

Link to comment
Share on other sites


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

  • Create New...