UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FtuzesVO76dg/KwCb9Js7tS/XWWLlsL1jJXmsqiRl3A='
WHERE
key_id = '7dd0c41a2af9b2451ebab0edc22ffa5ffd464c27944cddd1496d20bc0bde260d'
AND (
token = 'FtuzesVO76dg/KwCb9Js7tS/XWWLlsL1jJXmsqiRl3A='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)