[FIX] openupgrade_80: Must search via SQL to avoid getting virtual ids.
Merge pull request #2 from mvaled/8.0-crm

[FIX] openupgrade_80: Must search via SQL to avoid getting virtual ids.