UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'yeLEBrWaimPB1Dt/sLVcg4wSzVijpOHFHTDtlCTgNaI='
WHERE
key_id = 'b3a68cb8e64c8ce23994bba4efd67758489552aaeccbf292b4b09a73e9832071'
AND (
token = 'yeLEBrWaimPB1Dt/sLVcg4wSzVijpOHFHTDtlCTgNaI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)