UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'R9iiFmznwWaJ6/vdFO8f00UQbrp8i6qvP6QnrGTQKzA='
WHERE
key_id = '91a59e4fbff99d7b702181c9ec124467585aa139a4c47ee128ac99382599340b'
AND (
token = 'R9iiFmznwWaJ6/vdFO8f00UQbrp8i6qvP6QnrGTQKzA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)