UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'zvC+ropOM60J+9LxaGUm5JXDSbivb1TqcJDrYBIJ8C4='
WHERE
key_id = '73e9d95e985bda7db0fac7b38a1feb7bfe5c000a9d1fd6a26f549d419c96d602'
AND (
token = 'zvC+ropOM60J+9LxaGUm5JXDSbivb1TqcJDrYBIJ8C4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)