diff --git a/dblayeroo.php b/dblayeroo.php index 3e1e349..ad24446 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2814,6 +2814,8 @@ class dblayeroo $this->sep.".", "", $col); if ($col[0] === $this->sep) $col = substr ($col, 1); + elseif (strpos ($col, "DISTINCT ".$this->sep) === 0) + $col = "DISTINCT ".substr ($col, 10); if (substr ($col, -1) === $this->sep && strpos ($col, " AS ".$this->sep) === false) {