UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'obJkn3rORbWsFQTkK7LVUjMkeVaLDbJoOYB6IPLDGIU='
WHERE
key_id = '03a6d0334299b1e7756d84f39197aeb5ee668f8fd1cec64e75377d33f9181d54'
AND (
token = 'obJkn3rORbWsFQTkK7LVUjMkeVaLDbJoOYB6IPLDGIU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)