title: TypeError: not all arguments converted during string formatting (Python)
body: <p>Function code, in which I got the error:</p>
  <pre><code>def create_poll(connection, title, owner, options):
      with connection:
          with connection.cursor() as cursor:
              cursor.execute(INSERT_POLL_RETURN_ID, (title, owner))
              #cursor.execute(&quot;SELECT id FROM polls ORDER BY id DESC LIMIT 1;&quot;)
  
              poll_id = cursor.fetchone()[0]
              option_values = [(option_text, poll_id) for option_text in options]
  
              execute_values(cursor, INSERT_OPTION, option_values)
              for option_value in option_values:
                  cursor.execute(INSERT_OPTION, option_value)
  </code></pre>
  <p>SQL code:</p>
  <pre><code>INSERT_OPTION = &quot;INSERT INTO options (option_text, poll_id) VALUES (%s, %s);&quot;
  </code></pre>
  <p>Console logs, with an error and it's traceback:</p>
  <pre><code>Traceback (most recent call last):
      menu()
    File &quot;D:\Programming\Python\Python+PostgreSQL_2.0\poll_app\app.py&quot;, line 98, in menu
      MENU_OPTIONS[selection](connection)
    File &quot;D:\Programming\Python\Python+PostgreSQL_2.0\poll_app\app.py&quot;, line 30, in prompt_create_poll
      database.create_poll(connection, poll_title, poll_owner, options)
      execute_values(cursor, INSERT_OPTION, option_values)
      pre, post = _split_sql(sql)
    File &quot;C:\Python39\lib\site-packages\psycopg2\extras.py&quot;, line 1317, in _split_sql
      raise ValueError(
  ValueError: the query contains more than one '%s' placeholder
  </code></pre>