SELECT `id` FROM `table` GROUP BY `id` ORDER BY `id` asc