def checcbmail(msg):
cursor = mydb.cursor()
cbmail2 = checkuser(
msg.chat.id)
cursor.execute("select count(1) from users where cbmail=" + str(cbmail2[0][2])+"")
Gmail = cursor.fetchone()
print(Gmail)
raise errors.get_exception(packet)
mysql.connector.errors.ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
@gmail.com' at line 1
Help please