Is there a unique join between po_line_locations_all and mrp_item_purchase_orders?
The script uses only po_line_id to link the MRP PO (mrp_item_purchase_orders) table to the PO shipments (po_line_locations_all) table but MRP recommendations are per PO shipment, not per PO line so if you need the mrp recommendation alongside the PO shipment details, you will not be able to do it correctly using this script.
