An error occurred: select c.coupon_id, c.coupon_title, c.coupon_code, c.coupon_type, c.discount_type, c.discount_value, c.exp_date ,(select coupontype from coupon_type where type_id = c.coupon_type) as coupontype ,(select discounttype from discount_type where type_id = c.discount_type) as discounttype ,s.storename,s.store_logo,ca.category_url FROM coupons c inner join stores s on s.store_id = c.store_id inner join categories ca on ca.category_id = c.primary_category where c.statusid = 2 and c.primary_category =
--