Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

X-Mac's avatar
Level 1

Error 1615 Prepared statement needs to be re-prepared

Hello there, I have this error on my app:

SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared

I got this error when try to access a view inside the DB. The other select in the app works perfectly.

I tried to add the rule in database.php file : 'option'=>[\PDO::ATTR_EMULATE_PREPARES => true]

but don't solve the problem. Any idea? Thanks

0 likes
1 reply
jlrdw's avatar

Did you run php artisan config:clear after making changes?

1 like

Please or to participate in this conversation.