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