UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+aFjH2wCO9LlR+UuNxWnCQ7cjprkBUTjQOzsxYjQNvA='
WHERE
key_id = 'eabe8b8f6bd82c418aa04f5fb206238f3bb9da397ec953f5e5193fcb84c82731'
AND (
token = '+aFjH2wCO9LlR+UuNxWnCQ7cjprkBUTjQOzsxYjQNvA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)