How Do I do Select Statement in _preparecollection in Magento if the table I joined in the Main table has 2 rows with 1 parent ID.
Tables I have now.
Table 2(sales_flat_invoice_comment)

My Current Prepare Collection
$collection = Mage::getResourceModel($this->_getCollectionClass());
$collection->getSelect()->join( array('a'=> mgmx_sales_flat_invoice_comment), 'a.parent_id = main_table.entity_id', array('a.comment'));
$this->setCollection($collection);
return parent::_prepareCollection();
This query, in echoed will be like this
SELECT
main_table.*,a.commentFROMmgmx_sales_flat_invoice_gridASmain_tableINNER JOINmgmx_sales_flat_invoice_commentASaON a.parent_id = main_table.entity_id
But it will return an error if this query finds more than 1 row in table 2.
What I want is for something like the one below
With | as a delimiter.
How Can I achieved this in the _prepareCollection of Magento.

