title: SQLite Python AND statement not working
body: <p>I'm attempting to pull a list of rows from an SQLite database that are on a given day of the week and a certain hour of that day.
  When I open my sqlite browser and type the SQL:</p>
  
  <pre><code>SELECT * FROM points
  WHERE strftime('%H', checkintime) == '12'
    AND strftime('%w', checkintime) == '1'
  </code></pre>
  
  <p>It works and I receive all of the rows I should be receiving.
  However when I attempt to do this in python:</p>
  
  <pre><code>_points.execute("""SELECT * FROM points WHERE strftime('%H', checkintime) == ? AND strftime('%w', checkintime) == ?""", (time, day))
  </code></pre>
  
  <p>Where time is 12 and day is 1 I get zero results returned.
  What's even more strange is when I change the <code>execute</code> statement to use hardcoded values, it works.</p>
  
  <p><strong>I've attempted to typecast my vars to both strings and ints but its still a no go. :(</strong></p>
  
  <p>Any suggestions?</p>