select * from visitas where ip = '54.162.12.134' and products_id = '17112' and dia = '2015-07-04'