Apr-07-2021, 10:15 PM
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 AND usertimeout IS NULL DESC LIMIT 1' at line 1
mysql = "SELECT usertimein FROM userstimeclock WHERE userid = %s AND usertimeout IS NULL DESC LIMIT 1" myparams = str( myresult2[0]) mycursor.execute(mysql, myparams) myresult = mycursor.fetchone()