Removed static from associatedContribution method since it causes fatal ...

...on view or edit membership.
This commit caused the fatal:
https://github.com/civicrm/civicrm-core/commit/141d31708ca5ad57e982365b359eab2e3f78b136