select * from visitas where ip = '54.162.239.134' and products_id = '10878' and dia = '2015-07-05'