SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}Porec{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}' OR prCity = 'Porec' OR prZip = 'Porec' OR prStreet LIKE '{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}Porec{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}' OR prCountry = 'Porec') AND (prLocation LIKE '{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}Croatia{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}' OR prCity = 'Croatia' OR prZip = 'Croatia' OR prStreet LIKE '{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}Croatia{bf9cf0d3250779b632fe0865451cba78be35bdefe04ff32eda02d1250f3792b8}' OR prCountry = 'Croatia')