UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Onap74ZEEQQFGCAq0yow6R/11mezcnYYv1lVQ39BGik='
WHERE
key_id = 'fc69e12fc0bab6dfac29be85b6a5ece53449a7d9a62af8f1994630e93114973c'
AND (
token = 'Onap74ZEEQQFGCAq0yow6R/11mezcnYYv1lVQ39BGik='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)