Select project, count(*) AS the_count, group_concat(orderNumber ORDER BY orderNumber) AS the_items from project_document where project IS NOT NULL and project <> '' and project > 14007	group by project