SELECT DISTINCT(m.clb_id),MAX(m.posted) AS postdate, category FROM club_message_board as m, clubs as c WHERE m.clb_id=c.clb_id AND c.type='1' AND c.position>0 AND c.category=5 GROUP BY m.clb_id ORDER BY category, position desc LIMIT 100:Access denied for user 'root'@'localhost' (using password: NO)