title: It keeps outputing error: Not all parameters were used in the SQL statement
body: <pre><code>def getLevels(userName, levelID, levelName, levelLength, coins, starStars, amognus):
  try:
    statement = &quot;SELECT userName, levelID, levelName, levelLength, coins, starStars, amognus FROM levels WHERE userName=%s AND levelID=%s AND levelName=%s AND coins=%s AND amognus=%0s AND NOT starStars=%0s&quot;
    data = (userName, levelID, levelName, levelLength, coins, starStars, amognus,)
    cursor.execute(statement, data)
    for (userName, levelID, levelName, levelLength, coins, starStars) in cursor:
      print(f&quot;Got records of level {userName}, {levelID}, {levelLength}, {coins}, {starStars}&quot;)
  except database.Error as e:
    print(f&quot;Error retrieving entry from database: {e}&quot;)
  </code></pre>
  <p>getLevels(&quot;%s&quot;, &quot;%s&quot;, &quot;%s&quot;, &quot;%s&quot;, &quot;%s&quot;, &quot;%s&quot;, &quot;%s&quot;)</p>