RadSystems 8.2.3 sqlstate[hy000]: general error: 1615 using View

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

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.