I'm sorry, Dave. I'm afraid I can't do that.Uncaught exception: Call to a member function query() on null