select * from visitas where ip = '54.147.204.207' and products_id = '12315' and dia = '2015-04-27'