I am running a Python bot which connects to a SQL database and updates values in tables.
I have the following code:
mycursor.execute("SELECT * FROM reputation WHERE username = '" + str(critiquer) + "'")
I am receiving the error "...check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1"
I've done some debugging and there is no problem with the string "critiquer," and the row exists in the table.
Would appreciate some insight into this problem.