title: How to fix "near ")": syntax error" in sqlite
body: <p>I am working with Python and SQLite. I am constantly getting this message </p>
  
  <blockquote>
    <p>"near ")": syntax error".</p>
  </blockquote>
  
  <p>I tried to add a semi-colon to all the queries but still, I get this error message.</p>
  
  <pre class="lang-py prettyprint-override"><code>tables.append("""
                          CREATE TABLE IF NOT EXISTS payment (
                              p_id integer PRIMARY KEY,
                              o_id integer NON NULL,
                              FOREIGN KEY(o_id) REFERENCES orders(o_id),
                          );"""
                          )
  </code></pre>