1 verses of the American Standard Version have both "accursed" and "law".
John 7:49 But this multitude that knoweth not the law are accursed.
In other translations: YLT Darby Webster DRC