mysqli_sql_exception thrown

Deadlock found when trying to get lock; try restarting transaction