2013 Lost connection to MySQL server during query
in:
[select count(*) as total FROM new_products p WHERE p.products_status = 1 AND p.products_quantity > '0' AND p.gift_voucher=0 AND p.language_id = 1 and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 30]