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