Postgresql Array Agg Without Group By Mysql Php