$sql='SELECT FeedID, SUM(Shows) AS Shows, SUM(Clicks) AS Clicks, SUM(Transactions) AS Transactions, SUM(SaleMoney) AS SaleMoney, SUM(AdMoney) AS AdMoney'
.' FROM '.(string)$this->tableGateway->getTable()
.' WHERE FeedID in (\''.implode('\',\'',$feeds).'\')'
$sql='SELECT EventDate, SUM(Shows) AS Shows, SUM(Clicks) AS Clicks, SUM(Transactions) AS Transactions, SUM(SaleMoney) AS SaleMoney, SUM(AdMoney) AS AdMoney'
.' FROM '.(string)$this->tableGateway->getTable()
.' WHERE FeedID in (\''.implode('\',\'',$feeds).'\')'