diff --git a/DatabaseMysql.php b/DatabaseMysql.php index 869068a..5817f7e 100644 --- a/DatabaseMysql.php +++ b/DatabaseMysql.php @@ -436,7 +436,7 @@ class DatabaseMysql implements Database { $sql .= " GROUP BY ".$this->order_option($options['GROUP BY']); } - if (!empty($options['ORDER BY']) && $options['GROUP BY'] !== '0') + if (!empty($options['ORDER BY']) && $options['ORDER BY'] !== '0') { $sql .= " ORDER BY ".$this->order_option($options['ORDER BY']); }