From: niekt0 Date: Mon, 20 Jun 2011 14:38:11 +0000 (+0200) Subject: getUserSubmission_children fix3 X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=b5bf04a3b95468d37a95df63e2c7823f03b0b39b;p=mirrors%2FKyberia-bloodline.git getUserSubmission_children fix3 --- diff --git a/wwwroot/backend/mysql/backend.inc b/wwwroot/backend/mysql/backend.inc index 55eafab..f7bba66 100644 --- a/wwwroot/backend/mysql/backend.inc +++ b/wwwroot/backend/mysql/backend.inc @@ -288,7 +288,7 @@ public static function GetUserSubmissionsChildren($user_id,$limit=23,$offset=0,$ // XXX orderby mysql escape - $q = "select child.*, from nodes as child join + $q = "select child.* from nodes as child join (select node_id,node_creator from nodes where node_creator='$user_id') as j2 on child.node_parent=j2.node_id and child.node_creator <> '$user_id' join users as j3 on j3.user_id=child.node_creator order by node_created desc