Problem on v1.7.0-beta.1 using MySQL with paranoid and underscored enabled

I have a table configured using paranoid and underscored options and after upgrading to v1.7.0-beta.1 it started to show this error every time table.count() was executed

 { [Error: ER_BAD_FIELD_ERROR: Unknown column 'subject.deletedAt' in 'where clause'] code: 'ER_BAD_FIELD_ERROR', index: 0 }

After some digging, I found out that the error was related to pull request #935
I fixed it and it's now working again.