select * from visitas where ip = '54.158.164.47' and products_id = '17112' and dia = '2015-03-29'