From 18ac37883d7834b37e6052c1dffa995982832467 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 11 Nov 2010 19:23:08 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pman/Roo.php b/Pman/Roo.php index 98ac4df..4e9895e 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -713,7 +713,7 @@ class Pman_Roo extends Pman foreach($xx as $c) { $tn = sprintf($ocl.'_%s', $c); if ($distinct && $tn == $distinct) { - $has_distinct = 'DISTINCT( ' . 'join_'.$ocl.'_'.$col.'.'.$k .') as ' . $tc ; + $has_distinct = 'DISTINCT( ' . 'join_'.$ocl.'_'.$col.'.'.$k .') as ' . $tn ; $this->countWhat = 'DISTINCT join_'.$ocl.'_'.$col.'.'.$k; continue; } -- 2.39.2