UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/7F9jPEux+CO3O9hh8xOvng+D4gPP3IWGuhDXpAWYd8='
WHERE
key_id = '3fdee7e2b3fdcd09f99abb0fa83183a55382d8e0062305b0e48fd8b4daccc61c'
AND (
token = '/7F9jPEux+CO3O9hh8xOvng+D4gPP3IWGuhDXpAWYd8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)