bugfix for sql_error; added ob_start / ob_end_clean for error processing in views