Database error: Invalid SQL: SELECT intDiscountPercentage FROM tblSupplierDiscount sd, product p WHERE sd.intSupplierID=p.intSupplierID AND p.product_id= AND sd.strActive='Y' AND p.allow_discount='Y' AND p.apply_discount='Y'
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 sd.strActive='Y' AND p.allow_discount='Y' )