searching works
join coupons table only in case of detailes required