Your datamodel didn't get loaded, that's the problem. The code doing the select thinks that an earlier install attempt got further along than it really did. It thinks the acs-kernel datamodel installed without error and is checking to see if any packages are enabled in the APM.
Could be a weak point in the bootstrap/installer's checks to see if the kernel datamodel's been installed. aD wrote in some sanity checking but not a lot (nor should it need a lot).
The acs-kernel datamodel will load on my laptop ... let me know what happens when you blow away the database and try again.