title: fatel error is coming in getRow() function
body: <p>I am using this method to fetching the Rows from the database and showing on the <code>frontend</code> but when it execute it is giving a fatel error that is </p>
  
  <blockquote>
    <p>Fatal error: Call to a member function getRow() on a non-object in D:\xampp\htdocs\Deshbandhu\class\tblOp.php on line 432</p>
  </blockquote>
  
  <p>and the function code which I am using that is </p>
  
  <pre><code> function getRowFields($fields,$where = NULL, $order = NULL){
      global $db; 
      $fields = ($fields) ? " $fields "           : " * ";
      $where  = ($where) ? " WHERE $where "       : "";
      $order  = ($order) ? " ORDER BY $order "    : " ORDER BY {$this-&gt;primaryKey} ";
      $sql    = "SELECT $fields FROM {$this-&gt;table} $where $order;"; // limit 0,1
      $res    =$db -&gt;getRow($sql, DB_FETCHMODE_ASSOC);
      echo $res; exit;
      if (DB::isError($res))
          return $this-&gt;raiseError($res);
      return $res;
  }
  </code></pre>
  
  <p>and the defination of the getRow() are </p>
  
  <pre><code>function getRow($where = NULL, $order = NULL,$fields=NULL){
      global $db; 
  
     $sql    = $this-&gt;buildQuery(NULL, TBLOP_EXECUTE_SELECT, $where, $order,$fields);
  
      //echo $sql.'&lt;br&gt;';
      $res    = $db-&gt;getRow($sql, DB_FETCHMODE_ASSOC);
  
      if (DB::isError($res))
          return $this-&gt;raiseError($res);
  
      return $res;
  }
  </code></pre>
  
  <p>this code is running on live server and not giving any error but when I execute it on local server it is showing error like this.</p>