Skip to content

Commit 0c74fc8

Browse files
committed
Aggregated query error in mysql 5.7
#4
1 parent 498aaea commit 0c74fc8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ box/config/*
6060
!box/config/.gitkeep
6161
!box/config/.htaccess
6262
icon
63+
box/logs/*
64+
box/logs/.gitkeep
65+
box/logs/.htaccess
66+
logs/*
67+
logs/.gitkeep
68+
logs/.htaccess

box/core/sandesh.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function getSupportid($depart){ //{$data['db_prefix']}
390390
return $_SESSION['supportid'];
391391
}
392392

393-
$stmt = $this->global['pdo']->prepare("SELECT `sender_id`,count(`msg`) as `msg_count` FROM `{$this->data['db_prefix']}msgs` where `sender_id` IN (select `support_id` from `{$this->data['db_prefix']}temp` where `process` = 1 and `dept` = :depart) order by `sender_id`;");
393+
$stmt = $this->global['pdo']->prepare("SELECT `sender_id`,count(`msg`) as `msg_count` FROM `{$this->data['db_prefix']}msgs` where `sender_id` IN (select `support_id` from `{$this->data['db_prefix']}temp` where `process` = 1 and `dept` = :depart) GROUP BY msg, sender_id order by `sender_id`;");
394394

395395
$stmt->execute(array(
396396
'depart' => $depart

0 commit comments

Comments
 (0)