SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}Weiherhammer{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}' OR prCity = 'Weiherhammer' OR prZip = 'Weiherhammer' OR prStreet LIKE '{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}Weiherhammer{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}' OR prCountry = 'Weiherhammer') AND (prLocation LIKE '{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}Germany{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}Germany{1d28f3438126c70d6ed27be81c0ee87c6d502954e27a36b38819997f3ed4a3f2}' OR prCountry = 'Germany')