After upgrading from CiviCRM 4.6.24 to CiviCRM 4.7.18 on Drupal (7.52) we are getting the error "Expected one Contribution but found 25" whenever registering for an event with an event page.
I have tested logged in, not logged in, with and without price sets.
The transactions receiving this error are being created in CiviCRM and not using an API call like with Webform.
I am running Apache 2.4.25 with PHP 5.6.30.
The error details that I have in Drupal Watchdog is too long to post.