UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '75MT5UX8KJA5f5xcZ+GuQROAOYWEz/RO0YfzKgLgzqY='
WHERE
key_id = '5f572f7b381f113093c6076b542d05a18a6e650f09a925c1b183795e60cb1c27'
AND (
token = '75MT5UX8KJA5f5xcZ+GuQROAOYWEz/RO0YfzKgLgzqY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)