$has_distinct = false;
if ($filter || $distinct) {
$cols = array();
- echo '<PRE>' ;print_r($filter);exit;
+ //echo '<PRE>' ;print_r($filter);exit;
foreach($xx as $c) {
if ($distinct && $distinct == $c) {
$has_distinct = 'DISTINCT( ' . $do->tableName() .'.'. $c .') as ' . $c;
$cols[] = $c;
}
}
- echo '<PRE>' ;print_r($cols);exit;
- $selectAs = array(array( $cols , '%s'));
+
+
+ $selectAs = empty($cols) ? : array() : array(array( $cols , '%s')) ;
+
+
}