title: Python and MySQL STR_TO_DATE
body: <p>When I execute the code (see below) I got the next error </p>
  
  <pre><code>Traceback (most recent call last):
  File "/home/test/python/main.py", line 18, in &lt;module&gt;
    calls = tel.getCallRecordings(member['id'], member['start_date'])
  File "/home/test/python/teldb.py", line 49, in getCallRecordings
    'start_date': str(start_date),
  File "/usr/local/lib/python2.5/site-packages/MySQL_python-1.2.3-py2.5-freebsd-8.1-RELEASE-amd64.egg/MySQLdb/cursors.py", line 159, in execute
  TypeError: int argument required
  </code></pre>
  
  <p>The code I use is the next:</p>
  
  <pre><code>def getCallRecordings(self, member_id, start_date):       
      self.cursor.execute("""
      SELECT var10 as filename,
             var9 as duration
      FROM csv_data c
      LEFT JOIN transcriptions t ON
          c.id=t.call_id
      WHERE member_id=%(member_id)s AND
            var10 IS NOT NULL AND
            var9&gt;%(min_duration)d AND
            dialed_date&gt;STR_TO_DATE(%(start_date)s, '%%Y-%%m-%%d %%H:%%i:%%s') AND
            t.call_id IS NULL
      ORDER BY dialed_date DESC
      """, {
          'member_id': member_id,
          'min_duration': MIN_DURATION,
          'start_date': str(start_date),
          })
      logging.debug("Executed query: %s" % self.cursor._executed)
      return self.cursor.fetchone()
  </code></pre>
  
  <p>Why I got this error? Thanks.</p>