From e26ac9a373ea41dd3bbeb9bc112ef994a7ff8eb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 29 Jun 2011 19:45:39 +0200 Subject: [PATCH] Fixes SQL error. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/admin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/admin.php b/modules/admin.php index b9e9b18..ad07d0e 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -1988,7 +1988,8 @@ class AdminModule extends PLModule XDB::execute('INSERT INTO profile_education (id, pid, eduid, degreeid, entry_year, grad_year, promo_year, flags) SELECT ' . $select . ' FROM profile_education - WHERE pid = {?}', + WHERE pid = {?} + GROUP BY pid', $pid); } XDB::commit(); -- 2.1.4