* Fixed bug where select query in deleteAll could return wrong table name.

PDOStatement::getColumnMeta (in mysql.php) sometimes returns the actual
table name when using a MySQL view with the distinct select query, and not
the alias table name. By returning the actual table name the records
could not be removed.
By the way PDOStatement::getColumnMeta is an experimental function,
perhaps it's better to avoid it.
Merge pull request #3021 from wvdongen/master

Fixed bug where select query in deleteAll could return wrong table name