select * from visitas where ip = '54.161.147.106' and products_id = '10878' and dia = '2015-03-06'