Can't execute query SELECT distinct p.id, p.name, p.description, p.cross_sell, p.url, p.quantity, p.price, p.regprice, round(100* (1 - (p.price/p.regprice)), 0) as discount,
p.stocknumber, p.on_special, p.image_path, p.tiny_image_path
FROM products p, products_categories pc, categories c
WHERE p.id = pc.product_id
AND c.id = pc.category_id and p.stocknumber in (\'38772\', \'38773\', \'38769\', \'38774\', \'38770\', \'38775\') and p.quantity > 0 order by p.price desc, p.stocknumber asc limit 0, 6 MySQL 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 '\'38772\', \'38773\', \'38769\', \'38774\', \'38770\', \'38775\') and p.quantity' at line 5 This script cannot continue, terminating. |