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