SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY c.id ORDER BY posted DESC LIMIT 0,50' at line 8
SELECT SQL_CALC_FOUND_ROWS
c.*,
m.login AS login,
p.name AS name,
unix_timestamp(c.posted) AS posted
FROM profile_comment c, member m, profile p
WHERE p.member_id = m.id AND c.poster_id = m.id AND c.related_id =
GROUP BY c.id ORDER BY posted DESC LIMIT 0,50