fixed broken SQL that was throwing errors in backup

This commit is contained in:
skodak
2006-05-23 18:14:56 +00:00
parent 6fb6c9d960
commit c9a53bb206
+2 -2
View File
@@ -767,8 +767,8 @@ function data_get_participants($dataid) {
AND u.id = r.userid');
$comments = get_records_sql('SELECT DISTINCT u.id, u.id from '.$CFG->prefix.
'user u, '.$CFG->prefix.'data_comments c WHERE dataid="'.$dataid.'"
AND u.id = c.userid');
'user u, '.$CFG->prefix.'data_comments c, '.$CFG->prefix.'data_records r'.
' WHERE r.dataid="'.$dataid.'" AND u.id = c.userid AND r.id = c.recordid');
$participants = array();