UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Hs5FWqifzRxQSHWaowKcUIOHNcRH/WryNgAme33PkAg='
WHERE
key_id = 'b5f921d06fe4d5e108bd3409d1182054ac36f58f67ce012d239486aa1390fee4'
AND (
token = 'Hs5FWqifzRxQSHWaowKcUIOHNcRH/WryNgAme33PkAg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)