The query below is returning that 3 results are available, but it is only returning one entry id.
How can I have the three entry_id\'s returned?
$this-&g
Your $this->EE->db->group_by('portfolio_number');
is causing a single row with aggregated data to be returned.
If you want all the ids to be returned as well, you can try adding
$this->EE->db->select('GROUP_CONCAT(entry_id) AS entry_ids', false);
and then splitting the entry_ids
field in PHP:
str_getcsv($submissions);
Edit: I put in the second argument for the select query to prevent backticks being placed around the custom select query.