UPDATE
cscart_june_setuplock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 't3YughiQoVuP/zDGgxXSpFKp3geAVn8AJB48Ud5KUIQ='
WHERE
key_id = 'c7649c48201b0f70e1cedbada07bc792b4fbfcfc8d5e56fd61005b70608ed0a0'
AND (
token = 't3YughiQoVuP/zDGgxXSpFKp3geAVn8AJB48Ud5KUIQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)