title: SQLite Query with Python 1
body: <p>I have generated a list and able to generate the result:</p>
  
  <pre><code>l = [2, 3, 5, 2009 ]
  
  cur1 = cur.execute('SELECT * from table where + or '.join(('Code = ' + str(n) for n in l)))
  </code></pre>
  
  <p>However, I want to put in another query in the same statement as follows:</p>
  
  <pre><code>cur1 = cur.execute('SELECT * from table where '
  **'Timestamp in (select max(timestamp) from table)'**
  + ' or '.join(('Code = ' + str(n) for n in l)))
  </code></pre>
  
  <p>but generated </p>
  
  <pre><code> sqlite3.OperationalError: near "Code": syntax error. 
  </code></pre>
  
  <p>Please kindly advise how I can fit Timestamp statement into the first statement in order to focus on the query result which I want. </p>