title: Call to a member function in PHP
body: <p>I'm receiving the following error message while trying to call a method from a Singleton class, inside another class.</p>
  
  <blockquote>
    <p>Call to a member function query() on a non-object. </p>
  </blockquote>