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