UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '53RtyXD/XbzHDLBJBzb/UOroBXLZsKxyt/EMfzR9RXo='
WHERE
key_id = '83c7675cca314c2be2069e13fbb5c459bc048a1755a5321063f7bf57d7e7ff20'
AND (
token = '53RtyXD/XbzHDLBJBzb/UOroBXLZsKxyt/EMfzR9RXo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)