SELECT * FROM nwp_calc_gravidez WHERE date between '2017-10-08 00:00:00' AND '2017-10-08 23:59:59' and mailed='0000-00-00 00:00:00' and isPreg is null and contato not like '%@%' group by contato