Does it make sense to use stmt-query for data that in no way relate to GET POST requests? That is, the user will never write to the ID column, and there will never be a user select to this data.
For example, you need to read ALL "ids" (auto-increment) from TB and load them into an array for the subsequent selection of a random array element.
I think that here you can do without stmt.