SELECT
catalogue,
hc,
sum(number) AS number,min(dtime)
person,
  dtime
FROM
hctotal
GROUP BY
dtime DESC
ORDER BY
catalogue DESC