2013 - Lost connection to MySQL server during query

SELECT DISTINCT(p.products_id) FROM products p INNER JOIN products_to_categories p2c on p2c.products_id=p.products_id LEFT JOIN specials s on s.products_id=p.products_id and (s.start_date <= now() or s.start_date = '0000-00-00 00:00:00') and (s.expires_date >= now() or s.expires_date = '0000-00-00 00:00:00') and s.status = '1' LEFT JOIN featured f on f.products_id = p.products_id WHERE (products_status = '1') and (p.products_new = '1' and (p.products_new_end = '' or p.products_new_end = '0000-00-00' or p.products_new_end >= now()))

[TEP STOP]