2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Fix group by clause

This commit is contained in:
Adam Zammit
2016-09-16 09:50:17 +10:00
parent 03bd3604eb
commit 9a4c55a83a

View File

@@ -306,7 +306,7 @@ else {
AND (qsq.quota_reached IS NULL OR qsq.quota_reached != 1)
AND (qsqr.quota_reached IS NULL OR qsqr.quota_reached != 1)
AND co.operator_id = '$operator_id'
GROUP BY c.case_id ORDER BY a.start ASC";
GROUP BY a.appointment_id ORDER BY a.start ASC";
$rs = $db->GetAll($sql);
if (!empty($rs)) {
translate_array($rs,array("outcome"));
@@ -329,7 +329,7 @@ else {
AND (qsq.quota_reached IS NULL OR qsq.quota_reached != 1 )
AND (qsqr.quota_reached IS NULL OR qsqr.quota_reached != 1)
AND co.operator_id = '$operator_id'
GROUP BY c.case_id
GROUP BY a.appointment_id
ORDER BY a.start ASC";
$rs = $db->GetAll($sql);