Python 3.4 and MySQL. Why the request fails?

using the MySQL connector trying to do a dB query
query = ("SELECT * FROM taxe_client WHERE client_token = %s")
 print (clientToken)
 cursor.execute(query, (clientToken))
 #we look at the number of returned rows, if greater than 0, it means that the token in the client database is present
 result = cursor.fetchall()
 colRows = len(result)
 if colRows > 0:
 #the client in the database are taking data
 for row in result:
 idClient = row[0]
 print(idClient)

displays this error
mysql.connector.errors.ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%s' at line 1

and if you write the query
query = ("SELECT * FROM taxe_client WHERE client_token = '%s'")

the error disappears, although this token in the database have
and if you make such a request
query = ("SELECT * FROM taxe_client WHERE client_token = '894d723f2daf0fb0fa99881152663691'")

the idClient is displayed. CANT?
July 8th 19 at 16:10
1 answer
July 8th 19 at 16:12
Solution
cursor.execute(query, (clientToken,))

In a sense, a comma is needed after the token

Find more questions by tags MySQLPython