1615 Prepared statement needs to be re-prepared in codeigniter
I was working with Laravel Framework and stuck with the same issue. I googled and tried many solutions but didn't the rid of this issue. Finally, I got this solution and got rid of this issue.
Solution: MySQL: Prepared statement needs to be re-prepared
You can also see these solutions:
I hope this will also work for you.
Increase the value of the variable table_definition_cache
It could be increased in line with the sentence SET GLOBAL table_definition_cache=value;
Modify in my.conf file