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 'AND
dealCategoryStatus='Active' AND deal.dealStatus='Active'
ORDER BY
' at line 17 Query :
SELECT
dealToCat.dealID,deal.dealFabricImage
FROM
dp_deals AS deal
INNER JOIN
dp_deal_to_category AS dealToCat
ON (
dealToCat.dealID = deal.dealID
)
INNER JOIN
dp_deal_categories AS dealCat
ON (
dealCat.dealCategoryID = dealToCat.dealCategoryID
)
WHERE
dealToCat.dealCategoryID IN (SELECT dealCategoryID FROM dp_deal_categories WHERE dealCategoryParent!='0')
AND dealToCat.dealCategoryID= AND
dealCategoryStatus='Active' AND deal.dealStatus='Active'
ORDER BY
dealToCat.sortOrder ASC
Our signature curved waistband means you'll get a better, more natural fit. Tons of colors and upto 3 fit options mean you'll find the perfect pair of chinos
rn
Friends. Frenemies. Actual Enemies. We'll give any new costomer you refer 25% off their first
purchase, and you'll get HARD CASH of 25% of their purchase value straight into your BANK
ACCOUNT
Share your link
From:
To:
Congrats to refer your friend.
Restrictions Apply. See terms for details Terms
hey there,
Refer a Friend & Earn
to have friend !
refer a friend
receve 25%
of thier purchage value straight
Into your bank account!
Congrats for discount. Please check your Email for coupon code.
dont worry your friend also receives 25% off on their first buy