title: SQL / PHP PDO Select random row
body: <p>I want to be able to select a STUDENT randomly who has not FACED the exam ('N') and echo the name and subject. How can I achieve this?</p>
  <pre><code>$query = $db-&gt;prepare('SELECT name FROM exams WHERE faced = ?');
  $array = array('N');
  $query-&gt;execute($array);
  </code></pre>
  <p><img src="https://i.stack.imgur.com/8cWUm.jpg" alt="enter image description here" /></p>