If you use the static query method, and an error occurs, __triggerError is called. And in the __triggerError method, $this->ErrorCode = $error is executed. This does not work, because $this is not available in a static call.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you use the static query method, and an error occurs, __triggerError is called. And in the __triggerError method, $this->ErrorCode = $error is executed. This does not work, because $this is not available in a static call.