Zdravim,
mam SQL prikaz:
Kód:
SELECT post_time, topic_id FROM forum_posts WHERE forum_id=16 ORDER BY post_time DESC LIMIT 10
vypise:
Kód:
topic_id - post_time
944 - 1266676207
944 - 1266675998
944 - 1266675993
944 - 1266664388
972 - 1266532737
944 - 1266530089
980 - 1265731400
972 - 1265731023
972 - 1265729631
972 - 126221649
ja by som ale potreboval, aby tie topic_id vzdy zobral iba raz a posledny prispevok z nich, tak som pouzil:
Kód:
SELECT post_time, topic_id FROM forum_posts WHERE forum_id=16 GROUP BY topic_id ORDER BY post_time DESC LIMIT 10
vypise ale:
Kód:
topic_id - post_time
980 - 1265731400
972 - 1262216490
970 - 1257801084
969 - 1257801032
968 - 1257800886
923 - 1257800636
950 - 1255440964
737 - 1254748323
795 - 1253968841
961 - 1251811044
Co to je ?
kde je 944 ?