My goal here is to fill in a series of checkboxes.
If I run the query directly into the pkg_items table I have multiple rows of pkgid's and the associated playid. The table can have multiple pkgid's that are the same associated with playid's which are unique to the same pkgid.
ie.
pkgid = x playid = 2
pkgid = x playid = 3
pkgid = x playid = 4
pkgid = x playid = 7
pkgid x cannot have two playid's = 7.
pkgid = y playid = 2
pkgid = y playid = 5
pkgid = y playid = 7
pkgid = y playid = 3
pkgid y can have the same playid's as pkgid x but cannot repeat the playid's.
When the query runs in the script it only gets one record for the pkgid even I know there are 3.