Hello Brad,
That's a common issue with MySQL versions prior 5.7 and db views - that's actually a bug in PHP.
Open your database connection step and you can adjust this setting there.
I thought you already know how to debug such issues: Debugging Server Connect Errors
Which is most probably the same issues as with the custom query...