Any expert here to solve this strange error. Newsfeed plugin causes the error for some time and than something happens and the site become live again. Interval of this error is about every few weeks. The error is in the attachement.
The 723 line in database.php is
$stmt->execute(); //TODO setup profiler