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