title: python list in sql query as parameter
body: <p>I have a python list, say l</p>
  
  <pre><code>l = [1,5,8]
  </code></pre>
  
  <p>I want to write a sql query to get the data for all the elements of the list, say</p>
  
  <pre><code>select name from students where id = |IN THE LIST l|
  </code></pre>
  
  <p>How do I accomplish this?</p>