select count(*) as num from tb_snoir_specific_price sp where id_product = 3377 AND ( sp.from < "2020-02-29 8:08:31") AND (sp.to > "2020-02-29 8:08:31")