title: fetching data from same table multiple times?
body: <p>I want to fetch some data from a database table and use it in different sections on a page, currently I'm making multiple queries to fetch data from table, for example i want to fetch video path and description from videos table.
  I've two functions,</p>
  
  <pre><code>function get_photo_path($id){
  SELECT path from videos where id = $id;
  return path;
  }
  
  function get_video_description($id){
  SELECT desc from videos where id = $id;
  return desc;
  }
  </code></pre>
  
  <p>I'm just wondering if I can make a single function to fetch path and description together and use if in different sections, for example</p>
  
  <pre><code>&lt;div&gt;&lt;? //get path ?&gt;&lt;/div&gt;
  &lt;div&gt;some other data&lt;/div&gt;
  &lt;div&gt;&lt;? //get description ?&gt;&lt;/div&gt;
  </code></pre>