title: Can anyone correct my syntax here?
body: <p>I want to insert into a table as long as that entry doesn't already exist. This is my line of code:</p>
  
  <pre><code>cursor.execute("INSERT INTO author (name) VALUES(?) SELECT * FROM author WHERE NOT EXISTS (SELECT * FROM author)", (aname, ))
  </code></pre>
  
  <p>Also, I'm not sure if this query is correct since I haven't had the opportunity to test it, reason being I keep getting a syntax error.</p>