UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/kFjyYG09QV+wDpxa3GS9Ezv0/lJ61aGixg+UivOkAQ='
WHERE
key_id = '432040da801533da31c6fbe6a2727ae5aa3dcbf2d9d53b9fb33f85d555335a69'
AND (
token = '/kFjyYG09QV+wDpxa3GS9Ezv0/lJ61aGixg+UivOkAQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)