title: Python string formatting on MySQL query
body: <p>I'm trying to execute a query using two parameters, one is a list and the other is a number.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>cursor.execute("SELECT cod_art, price_EU, price_third_country 
                  FROM lt_gamma_articles 
                  WHERE cod_art in (%s) AND cod_store = %d 
                  ORDER BY cod_art, timestamp" 
               % format_strings, tuple(cod_art_int), int(shop) )
  </code></pre>
  
  <p>I get this error:</p>
  
  <p>TypeError: not enough arguments for format string</p>
  
  <p>I think the error is in the string formatting, but I don't know how to format it correctly and I've been stuck for a while.</p>