title: $wpdb table name
body: <p>I'm having problem with getting data from database via <code>$wpdb</code>:</p>
  
  <pre><code>function nadji_sve_statuse() {
    global $wpdb, $leaguemanager;
    $league = $leaguemanager-&gt;getCurrentLeague();
  
    $svi_statusi = $wpdb-&gt;get_var( "SELECT * FROM {$wpdb-&gt;leaguemanager_person_status} WHERE 1" );
    
    return $svi_statusi;
   }
  </code></pre>
  
  <p>When I replace <code>{$wpdb-&gt;leaguemanager_person_status}</code> with full and real table name <code>wp_leaguemanager_person_status</code>, it works fine - but when user tries to rename database table prefixes to something other, a new problem will surface. What am I doing wrong?</p>