2013 Lost connection to MySQL server during query
in:
[select sale_id from salemaker_sales where sale_status = '0' and (((sale_date_start <= now() and sale_date_start != '0001-01-01') and (sale_date_end >= now())) or ((sale_date_start <= now() and sale_date_start != '0001-01-01') and (sale_date_end = '0001-01-01')) or (sale_date_start = '0001-01-01' and sale_date_end >= now())) ]