$result=pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'.tablesort_sql($form['header']['#value']),50,0,NULL,$status);
$result=pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid, n.title as node_title FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid INNER JOIN {node} n ON n.nid = c.nid WHERE c.status = %d'.tablesort_sql($form['header']['#value']),50,0,NULL,$status);
// build a table listing the appropriate comments
$destination=drupal_get_destination();
...
...
@@ -1242,6 +1243,7 @@ function comment_admin_overview($type = 'new', $arg) {