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