Stop triggering warnings from inside the query.

Fixes #379
Merge pull request #380 from MZAWeb/feature/remove-trigger-error

Stop triggering warnings from inside the query