Granted I do not have the 'catholic' original Latin (cough cough) writing of this 'sola scripture', so old King James will have to suffice. This 'sola scripture' you reference comes in chapter 7 of Matthew which begins with the 'command' of judge not lest ye be judged... follows with verse 12 Therefore all things whatsoever ye would that men should do to you, do ye even so to them: for this is the *law* and the prophets. (Notice Christ Himself made the writings of the prophets one and the same as the 'Gospel'. Imagine that from Moses to Malachi the prophets, are the 'Gospel'.
Then verse 15 Christ WARNS Beware of false prophets, which come to you in sheep's clothing, but inwardly are ravening wolves..... (I am not going to type the whole chapter but one 'sola scripture' does NOT stand on its own.)
verse 21 Not every on that saith unto Me, 'Lord, Lord', shall enter into the kingdom of heaven; but he that doeth the will of My Father Which is in heaven.
22 Many will say to Me in that day, 'Lord, Lord, have we not prophesied in Thy name? and in Thy name have cast out devils? and in Thy name done many wonderful *WORKS*?
verse 23 the 'sola scripture' referenced And then will I profess unto them, 'I never knew you: depart from Me, ye that work iniquity.'
SO it does not FIT the notion that the 'deity' of Christ was the subject or the object of cause for being told to 'depart from Me, as these all claimed to be doing the 'Lord's works'.
So, you want to split hairs over how Jesus Christ will deny that He knows someone after they speak against the Holy Ghost by saying the Holy Ghost did not do what Christ promised the Holy Ghost would do? How typical indeed of all those who worship The Most Holy Self
It's straight foward:
James said, ... not by faith only.
Anyone who thinks James is wrong, that James lied or that James was misquoted, is saying that the Holy Spirit did not lead James or did not oversee and ensure the Truth of the Scriptures.
Anyone who says the Holy Spirit did not guide the Apostles and insure that the Scriptures are not in error is calling Jesus Christ a liar.
Anyone who calls Jesus Christ a liar is denying that Jesus Christ is the Son of God, God from God, incapable of telling a lie. Obviously, when someone insists that a particular thing that Christ promised is a lie, they are calling Christ a liar whether they realize that or not.
When someone goes even further and blatantly calls Christ Himself a liar by denying that He is present in the bread and wine when we remember Him, they are deliberately denying the deity of Christ by directly calling Christ a liar.
For those who claim to have once been Catholic but obviously have no knowledge of what the Catholic Church really teaches and want to split haris over "anathema":
Titus 3:9 But avoid foolish questions, and genealogies, and contentions, and strivings about the law. For they are unprofitable and vain.
Titus 3:10 A man that is a heretic, after the first and second admonition, avoid:
Titus 3:11 Knowing that he, that is such an one, is subverted, and sinneth, being condemned by his own judgment.
Those who continue to deny the deity of Christ can fool themselves however they like, but they should get used to the idea of hearing, "I never knew you" from the very Jesus Christ they deny is God.