title: Order by featured DESC not working for a custom variable
body: <p>I have the following functions , I need to update $how so it sort videos by featured videos after the site_views DESC I tried a lot of times but same output is displaying or I get empty output.Thanks in advance. so i need to display only featured videos after site_views.</p>
  
  <pre><code>function list_videos($how = 'added', $limit = '15') { // newest, top views, etc etc etc
      $query = mysql_query("SELECT * FROM pm_videos ORDER BY $how DESC LIMIT $limit");
      $result = '';
      while ($row = mysql_fetch_array($query)) {
  
          $results .= "
                  &lt;div class=\"item\"&gt;
                  &lt;a href=\"" . makevideolink($row['uniq_id'], $row['artist'], $row['video_title']) . "\"&gt;&lt;img src=\"" . show_thumb($row['uniq_id']) . "\" alt=\"" . $row['video_title'] . "\" class=\"imag\" width=\"107\" height=\"72\" /&gt;&lt;/a&gt;
                  &lt;a href=\"" . makevideolink($row['uniq_id'], $row['artist'], $row['video_title']) . "\" class=\"song_name\"&gt;
                  &lt;span class=\"artist_name\"&gt;" . fewchars($row['artist'] . " - " . $row['video_title'], 30) . "&lt;/span&gt;
                  &lt;/a&gt;
                  &lt;span class=\"item_views\"&gt;" . pm_number_format($row['site_views']) . " views&lt;/span&gt;
                  &lt;/div&gt;";
      }
      return $results;
  }
  </code></pre>
  
  <p><strong>Well now i updated the code and it's showing featured vidos only but they aren't ordered:</strong></p>
  
  <pre><code>function list_featured_videos($how = 'added', $limit = '15') { // newest, top views, etc etc etc
      $query = mysql_query("SELECT *
  FROM `pm_videos`
  ORDER BY `pm_videos`.`featured` DESC
  LIMIT 0 , 30");
      $result = '';
      while ($row = mysql_fetch_array($query)) {
  
          $results .= "
                  &lt;div class=\"item\"&gt;
                  &lt;a href=\"" . makevideolink($row['uniq_id'], $row['artist'], $row['video_title']) . "\"&gt;&lt;img src=\"" . show_thumb($row['uniq_id']) . "\" alt=\"" . $row['video_title'] . "\" class=\"imag\" width=\"107\" height=\"72\" /&gt;&lt;/a&gt;
                  &lt;a href=\"" . makevideolink($row['uniq_id'], $row['artist'], $row['video_title']) . "\" class=\"song_name\"&gt;
                  &lt;span class=\"artist_name\"&gt;" . fewchars($row['artist'] . " - " . $row['video_title'], 30) . "&lt;/span&gt;
                  &lt;/a&gt;
                  &lt;span class=\"item_views\"&gt;" . pm_number_format($row['site_views']) . " views&lt;/span&gt;
                  &lt;/div&gt;";
      }
      return $results;
  };
  </code></pre>
  
  <p>and calling it with :</p>
  
  <pre><code>$featured = list_featured_videos('added');
  </code></pre>
  
  <p><strong>Note that using added or site_views rendered the same result.</strong></p>