Jump to content

problem with SQL


Recommended Posts

i have a problem with the link specials (prices_drop.php), the acces report this 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 'AND p.`active` = 1 AND p.`id_product` IN ( SELECT cp.`id_product` FRO' at line 3


SELECT COUNT(DISTINCT p.`id_product`) AS nb
FROM `psz_product` p
AND p.`active` = 1
AND p.`id_product` IN (
SELECT cp.`id_product`
FROM `psz_category_group` cg
LEFT JOIN `psz_category_product` cp ON (cp.`id_category` = cg.`id_category`)
WHERE cg.`id_group` = 1

I have install the 1.2.4 version. i need help with this issue because i don´t know the correction thanks for your help

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...