Database error occured. Please try again later.

Error: 1213
Deadlock found when trying to get lock; try restarting transaction
DELETE FROM session WHERE expiry < UNIX_TIMESTAMP()