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 C.couponType IN (1,3)' at line 8 SELECT sum( costPoints ) FROM user_oneTimeCoupons AS U INNER JOIN oneTimeCoupons C ON U.couponId = C.id INNER JOIN oneTimeCoupon_tiers T ON C.tierId = T.id WHERE U.userId= AND C.couponType IN (1,3)
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 '' at line 1 SELECT COUNT(id) FROM user_oneTimeCoupons uotc WHERE uotc.userId =
Invalid user.