Bug fix: DB Exec does not return affected row if query contain subselect (Issue #437)