An error occurred: select s.store_id, s.storename,s.country,s.store_url, s.web_address,s.store_logo, s.store_thumbnail, s.small_thumb, c.tracking_link,c.imp_code, date_format(c.exp_date,'%b %d, %Y') as exp_date , date_format(c.start_date,'%b %d, %Y') as start_date , c.coupon_code, c.coupon_desc, c.show_desc, s.show_frame, c.couponname, c.coupon_url,c.coupon_id,c.coupon_type,c.product_image,c.currency,date_format(c.added_date,'%b %d, %Y') as added_date ,c.user_submitted,c.username from coupons c, stores s, coupon_categories ck where 1 and s.store_id = c.store_id and c.coupon_id = ck.coupon_id and c.status='1' and ck.category_id = '177' and lang = 0 order by c.edited_date DESC limit 0, 20
1052 -- Column 'lang' in WHERE is ambiguous