select * from visitas where ip = '54.87.117.4' and products_id = '10878' and dia = '2015-05-27'