added contribution table in query from clause for contribution note

This fixes the issue:
-  when you had a contribution note in a profile with no other contribution fields
- then there is a database error when the user is moved from confirm screen to thank you screen
- this is because there is a missing join table in the SELECT query