I am working on a simple program that needs a connection in MySQL. I got a problem with my query and i'm stuck with it. It says that "not all arguments converted during string formatting" but as far as i know, my syntax is correct. What's the problem on it? Here is my code:
username = (self.username.text())
cur.execute("SELECT * FROM users WHERE username = %s", (username))