Merge pull request #3277 from clawoo/develop

Escape arrays sent as binding values for database queries.