UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+opr1wfU3WReMXxHxo62xVJZMbXxE9qzPQ2U/zIUio0='
WHERE
key_id = '78c6ffa8b70a5e48aa54495d2206047029288c15cce1b0ad6972d3b7c63b00cb'
AND (
token = '+opr1wfU3WReMXxHxo62xVJZMbXxE9qzPQ2U/zIUio0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)