UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'jnPdTmw6EuTm0D7PrOuy3cm4OKX1VtVGcKgmpx+vCaQ='
WHERE
key_id = 'bc83e5c1225e5cffc4100a923cd4641c1156728e78da073bf68e17b25acfade8'
AND (
token = 'jnPdTmw6EuTm0D7PrOuy3cm4OKX1VtVGcKgmpx+vCaQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)