I've developed a web app on Homestead and everything worked just fine. Now on the production server I get this error
"General error: 1615 Prepared statement needs to be re-prepared (SQL: select score from highscore where user_id = 1)”
It seems like this is a Mysql Bug and has something to do with too many queries (http://bugs.mysql.com/bug.php?id=42041) but I am not sure. If I comment this query above out, I get the same error for the next query. I am querying a lot of user and game history data for this request. (some data from MySqls views too)