SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}Višnjan{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}' OR prCity = 'Višnjan' OR prZip = 'Višnjan' OR prStreet LIKE '{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}Višnjan{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}' OR prCountry = 'Višnjan') AND (prLocation LIKE '{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}Croatia{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}' OR prCity = 'Croatia' OR prZip = 'Croatia' OR prStreet LIKE '{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}Croatia{0d52356f50274b417075682c07d2812eba3efc2ea43bce776b7348e0673bdc1b}' OR prCountry = 'Croatia')