SQLite Forum

Does table have rowid?
Login
The pragma vtabs are not INNOCUOUS so they can only be used from top level statements (or from temp).

Do you have trusted_schema off perchance?  (.dbconfig)