Upgraded from 4.6.38 to 5.4.0 in a test env. The Donor Report (Summary) and (Detail) both fail on this piece of sql
SELECT id, title FROM civicrm_batch WHERE item_count >= 1 AND status_id != ORDER BY title
Clearly the status_id is missing.
I then upgraded to 5.5.0 hoping maybe that would fix it, nope.
civicrm_batch has no rows so I'm guessing it queries it for some batch id gets back null and sticks that into the query.
I tried to create some batches both open and closed for all the possibilities I think there are. That didn't help.