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