Fixing some regressions in SQL.
Fix PHP mailer class call in Contact Us form