Prevent fatal PHP errors by catching PDOStatement::execute() errors before calling PDOStatement::fetch()

...PDOStatement::fetch() to prevent fatal PHP errors.