Hi, just run query:
DELETE links FROM tblknowledgebaselinks as links
LEFT JOIN tblknowledgebase as article ON links.articleid = article.id
WHERE article.id IS NULL
It will remove the links of the category with the articles that you have already deleted and there will be no more problems.