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