$has_distinct = false;
if ($filter || $distinct) {
$cols = array();
- echo '<PRE>' ;print_r($xx);exit;
+ // echo '<PRE>' ;print_r($xx);exit;
foreach($xx as $c) {
if ($distinct && $distinct == $c) {
$has_distinct = 'DISTINCT( ' . $do->tableName() .'.'. $c .') as ' . $c;