Hi there!
Well, without knowing the relevant clinical details or a detailed clinical evaluation it would be difficult to comment on the situation or if the lesions could be related. This would essentially depend on the cause of the masses found in the liver and enlargement of the lymphnodes which may or may not be related to each other or the rib pain. It would be best to discuss the situation and the suggested management plan in detail with your treating doctor.
Hope the information is helpful.
Take care!
I also found another swollen lymph node inner my armpit this morning