Updating variable names as per @nmalcolm's
Again updating variable name.
Fixes #1443 View thread notes - PgSQL
Fixes #2019 function affected_rows in db_pgsql.php calls pg_affected_rows with the wrong parameter
#2070 Pending group join requests are effectively numUsersInGroup * JoinRequests
Fixes #2103 Mark forum read doesn't work with PostgreSQL
Fixes #2168 Postgres errors in search.php and useless order by clause
Fixes #2177 update_pm_count() can throw sql error in Postgres
Fixes #2162 Threadlist can contain a thread without name, id etc.
Fixes #2110 Writing limit in a post triggers PostgreSQL replacement
Fixes #2163 Linking to non existent post does not show typical error page
#2205 enablereputation setting problem
#2205 enablereputation setting problem
Fixes #2204 Login Page - maxlength for username/email field too short
Fixes Bug #2193 Thread Subsciptions "not subscribed to any threads" with &page=
Fixes #2192 Attachments still downloadable if thread unapproved
Fixes #2188 Reputation Sync Not Accounting For NULL Values
#2184 SID not checked in admin/modules/templates.php
Fixes #2179 Set value for MYBB_ROOT
Fixes #2175 Displaying the latest new user does not always work