Thats a MySQL issue rather than framework specific, I think it's due to too many large queries.
Edit: a quick google points to upping the table_definition_cache
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi guys,
Selecting MySQL tables are good, but MySQL views, error comes. See the following error:
SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared (SQL: SELECT * FROM v_user_models)
My view: CREATE VIEW v_user_models AS select m.id AS model_id, u.id AS user_id, u.firstname AS firstname, u.lastname AS lastname, from ((users u join models m on((u.id = m.user_id)))
In my localhost, it is working but when I uploaded it on the live site, it doesn't work. Please help.. Thanks a lot!
hi guys, I think that change of "table_definition_cache" parameter is not resolve this problem ... I did try to create simply separate PHP page with (standard/usual) code for select data from db-view and - data is retrieved correctly! (on my webhosting). But if I use retrieving the same data from the same db-view through code in Laravel app (on the same webhosting and the same MySQL setting) it is raised that error (1615). Further I don't run a lot of queries, only this one (simply select to db-view which have to retrieve 1 row from 20).
Pls see to my similar question/problem on http://laravel.io/forum/08-07-2015-difference-between-select-on-db-table-and-db-view-on-webhosting-error-1615
Please or to participate in this conversation.