Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.38 KB | None | 0 0
  1. SELECT a.postid,a.author,a.title,a.post,a.showtime,b.realtime,a.posticon,a.ip
  2. FROM (SELECT * FROM (SELECT * FROM bcb_comments ORDER BY posticon DESC) AS resone GROUP BY title ORDER BY posticon DESC) AS a, (SELECT * FROM (SELECT * FROM bcb_comments ORDER BY realtime DESC) AS restwo GROUP BY title ORDER BY realtime DESC) as b
  3. WHERE a.title = b.title
  4. ORDER BY a.posticon ASC, b.realtime DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement