UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '8l6zt4TNxgeKIskU6t8GEdee+K4ZiRUoLemQyROhMGo='
WHERE
key_id = '755600c79b7cd0e4825b1d5d75528e7fcf75aaffaa49dc2674682493beb82383'
AND (
token = '8l6zt4TNxgeKIskU6t8GEdee+K4ZiRUoLemQyROhMGo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)