A small error has occured as the computer attempted to query the database.
errno=1064
error =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 '' at line 16
the suspect query was as follows:
Select
*
from
shop_products p,
shop_product_to_catalogs cg,
shop_product_to_categories cy
where
cg.catalog_ID =5
and
cy.category_ID =689
and
p.product_ID =cg.product_ID
and
p.product_ID = cy.product_ID
and
p.product_ID =