change PDO error mode for easier debugging during transition to PDO

Note: The error mode will be set to ERRMODE_SILENT after the
      transition to PDO is complete.
PDO for news.php and searchfunctions.php + fix in class sql