title: Why does fetchone()[0] return a 'Nonetype'
body: <p>I'm trying to store the employeeid value from employee table, to get the specific row I use the following command on Python:</p>
  
  <pre><code>cursor.execute("SELECT*FROM EMPLOYEE WHERE first_name = %s AND last_name = %s", (employee['firstname'],employee['lastname']))
  </code></pre>
  
  <p>followed by </p>
  
  <pre><code>employeeid=cursor.fetchone()[0]
  </code></pre>
  
  <p>why does employeeid have value Nonetype? </p>