select * from visitas where ip = '54.167.177.140' and products_id = '10878' and dia = '2015-04-01'