title: sqlite3 not selecting anything when I use AND operator
body: <p>I am trying to select something from the database in <code>sqlite3</code>.</p>
  <pre><code>import sqlite3
  
  
  conn = sqlite3.connect(&quot;db_informatii_principal.db&quot;)
  c = conn.cursor()
  
  c.execute(&quot;CREATE TABLE persoane (id integer PRIMARY KEY, nume text, prenume text, telefon text, varsta text, adresa text, inaltime text, instagram text, detalii text)&quot;)
  conn.commit()
  
  
  c.execute(&quot;INSERT INTO persoane VALUES(NULL, 'Mustea', 'David', '0425698333', '17', 'Exemplu Adresa 1', '182', 'george.george', 'Ii place sa bea')&quot;)
  conn.commit()
  lista = [&quot;David&quot;, &quot;Mustea&quot;]
  c.execute(f&quot;SELECT * FROM persoane WHERE nume = '{lista[0] or lista[1]}' AND prenume = '{lista[0] or lista[1]}'&quot;)
  
  
  
  for x in c.fetchall():
      print(x)
  </code></pre>
  <p>I am using the AND operator in <code>sqlite3</code> and the or operator in f-string in python, and it's giving me no results.</p>