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

**URL:** <https://forum.radsystems.io/t/sqlstate-hy000-general-error-1615-prepared-statement-needs-to-be-re-prepared/1591>\
**Category:** PHPRad Classic\
**Created:** [June 10, 2023, 5:15pm UTC](https://forum.radsystems.io/t/sqlstate-hy000-general-error-1615-prepared-statement-needs-to-be-re-prepared/1591 "2023-06-10T17:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![usmraf786](https://forum.radsystems.io/user_avatar/forum.radsystems.io/usmraf786/32/1018_2.png) [@usmraf786](https://forum.radsystems.io/u/usmraf786)\
**Post date:** [October 7, 2023, 8:02pm UTC](https://forum.radsystems.io/t/sqlstate-hy000-general-error-1615-prepared-statement-needs-to-be-re-prepared/1591/8 "2023-10-07T20:02:05Z")

</div>

It will solve the issue.

> [@RadSystems 8.2.3 sqlstate\[hy000\]: general error: 1615 using View](https://forum.radsystems.io/t/radsystems-8-2-3-sqlstate-hy000-general-error-1615-using-view/1769):
>
> If you are using views in RadSystems and facing below error: sqlstate[hy000]: general error: 1615 prepared statement needs to be re-prepared (sql: select count(\*) as aggregate [image] Add below code in php-laravel-api\config\Database.php file ‘options’ =\> [\PDO::ATTR\_EMULATE\_PREPARES =\> true], Note: View will give error always after Publish Project with Sync Database. To solve it: Restart MySQL And then Publish Project again, View pages will work.

---

_[View the full topic](https://forum.radsystems.io/t/sqlstate-hy000-general-error-1615-prepared-statement-needs-to-be-re-prepared/1591)._
