select * from coupons c left join coupons_description cd on c.coupon_id = cd.coupon_id where c.coupon_active = 'Y' and c.coupon_start_date < now() and c.coupon_expire_date > now() limit 1 [TEP STOP] 2006 - MySQL server has gone away select 1 from sessions where sesskey = 'p8225nqmkelj7ulgqmmsr5e5c4' [TEP STOP] |