1 verses of the Young's Literal Translation have both "accursed" and "law".
John 7:49 but this multitude, that is not knowing the law, is accursed.'
In other translations: ASV Darby Webster DRC