protected function getErrorInfo(\PDOStatement $statement) { $info = $statement->errorInfo(); $output = sprintf("%s - message: '%s'", $info[0], $info[2]); return $output; }