title: Convert mysql_fetch_assoc to PDO
body: <p>I'm struggling to securely convert the below into PDO. Any ideas? Thanks for your help.</p>
  
  <pre><code>function getSlug($param)
  {
      $query = mysql_query("SELECT * FROM articles WHERE slug = '$param'") OR die(mysql_error());
      return mysql_fetch_assoc($query);
  }
  </code></pre>