mysql 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 prtbl.enabled = '1' AND prtbl.in_stock > 0 AND cat.enabled = '1'' at line 8] in EXECUTE("SELECT DISTINCT
prtbl.productID
FROM
`erotek_products` AS prtbl
INNER JOIN `erotek_products_relations` AS prcttbl ON prtbl.productID = prcttbl.productID
INNER JOIN `erotek_categories` AS cat ON cat.categoryID = prcttbl.categoryID
WHERE
cat.categoryID IN () AND prtbl.enabled = '1' AND prtbl.in_stock > 0 AND cat.enabled = '1'")
|