Skip to content

Commit

Permalink
Aggregated query error in mysql 5.7
Browse files Browse the repository at this point in the history
GaneshKandu committed Mar 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 498aaea commit 0c74fc8
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -60,3 +60,9 @@ box/config/*
!box/config/.gitkeep
!box/config/.htaccess
icon
box/logs/*
box/logs/.gitkeep
box/logs/.htaccess
logs/*
logs/.gitkeep
logs/.htaccess
2 changes: 1 addition & 1 deletion box/core/sandesh.php
Original file line number Diff line number Diff line change
@@ -390,7 +390,7 @@ function getSupportid($depart){ //{$data['db_prefix']}
return $_SESSION['supportid'];
}

$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`;");
$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`;");

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

0 comments on commit 0c74fc8

Please sign in to comment.