title: Query result data is displaying after page reload
body: <p>This is my code.</p>
  
  <p>index.php file:</p>
  
  <pre><code>$viewer_id = $_SESSION['viewer_id'];
      $db = new Database('144.76.6.45','5432','3331','asd','31sd23');
      $db-&gt;querySelect("SELECT * FROM users WHERE vk_id = $viewer_id");
      $row = $db-&gt;STH-&gt;fetch();
      if(empty($row)){
          require 'template/default/not_logged.php';
      }
      else {
          require 'template/default/logged.php';
      }
  </code></pre>
  
  <p>This part is understandable. Connecting to database, doing query. If viewer's id is in db - logged.php if not - not_logged.php</p>
  
  <p>Lets say viewers id is already in db.</p>
  
  <p>logged.php file:</p>
  
  <pre><code>&lt;div id="text-right"&gt;
                              &lt;p&gt;Игровой ник: &lt;?php $user-&gt;getEuName(); ?&gt;&lt;/p&gt;
                              &lt;p&gt;Cоциум: &lt;?php $user-&gt;getSociety(); ?&gt;&lt;/p&gt;
                              &lt;p&gt;Основная профессия: &lt;?php $user-&gt;getMainProfession(); ?&gt;&lt;/p&gt;
                              &lt;p&gt;Дополнительная информация: &lt;?php $user-&gt;getNotes(); ?&gt;&lt;/p&gt;
                              &lt;p&gt;Ищу команду для совместной охоты: &lt;?php $user-&gt;getWantTeam(); ?&gt;&lt;/p&gt;
                          &lt;div class="edit-info"&gt;&lt;a href="#"&gt;Редактировать&lt;/a&gt;&lt;/div&gt;
                          &lt;/div&gt;
  </code></pre>
  
  <p>This methods are getting info from db.</p>
  
  <pre><code>class User extends Database {
      public $vk_id;
      public $eu_name;
      public $eu_society;
      public $eu_notes;
      public $eu_want_team;
      public $eu_data;
  
      function __construct() {
      parent::__construct('144.76.6.45','5432','eu','eu','eu123');
      }
  
      function getEuName() {
          $this-&gt;querySelect("SELECT eu_name FROM users WHERE vk_id = $this-&gt;viewer_id");
          $row = $this-&gt;STH-&gt;fetch();
          print '&lt;b&gt;'.$row['eu_name'].'&lt;/b&gt;';
      }
  
      function getSociety() {
          $this-&gt;querySelect("SELECT eu_society FROM users WHERE vk_id = $this-&gt;viewer_id");
          $row = $this-&gt;STH-&gt;fetch();
          print '&lt;b&gt;'.$row['eu_society'].'&lt;/b&gt;';
      }
  
      function getNotes() {
          $this-&gt;querySelect("SELECT eu_notes FROM users WHERE vk_id = $this-&gt;viewer_id");
          $row = $this-&gt;STH-&gt;fetch();
          print '&lt;b&gt;'.$row['eu_notes'].'&lt;/b&gt;';
      }
  
      function getWantTeam() {
          $this-&gt;querySelect("SELECT eu_want_team FROM users WHERE vk_id = $this-&gt;viewer_id");
          $row = $this-&gt;STH-&gt;fetch();
          if($row['eu_want_team'] == 'TRUE') {
              print '&lt;b&gt;Да&lt;/b&gt;';
          }
          else {
              print '&lt;b&gt;Нет&lt;/b&gt;';
          }
      }
  
      function getMainProfession() {
          $this-&gt;querySelect("SELECT eu_main_profession FROM users WHERE vk_id = $this-&gt;viewer_id");
          $row = $this-&gt;STH-&gt;fetch();
          print '&lt;b&gt;'.$row['eu_main_profession'].'&lt;/b&gt;';
      }
  
  }
  $user = new User();
  </code></pre>
  
  <p>And this is user class with get methods.(he is included in index.php like database.php(db connection class) is).</p>
  
  <p>Everything is ok, but when viewer comes to page, the data of methods(query results) doesn't show, they show only <strong>AFTER RELOAD!</strong> I don't know whats the problem. Please solution.</p>
  
  <p>Thanks!</p>