title: Trying to search a column on SQLite Python so that it only returns the information searched
body: <p>New to Python and Databases</p>
  
  <p>I have a database table set up with a column of usernames. I want the user to be able to search through the table via a raw_input and only return the values which are associated with that user name.</p>
  
  <p>E.g. user searches for Bill and it only displays Bill's records ordered by a specified column</p>
  
  <p>This is what I have so far but its obviously VERY wrong, hope someone can help:</p>
  
  <pre><code>def find_me(db, column_name):
      db = sqlite3.connect(db)
      cursor = db.cursor()
      name = raw_input("Please enter your username: ")
      cursor.execute("SELECT name FROM username WHERE name=?", (name,))
      cursor.execute("SELECT * FROM username ORDER BY "+column_name+" ASC")
      name = cursor.fetchone()
      next = cursor.fetchone()
  </code></pre>
  
  <p>Thank you in advance</p>