From 516640b0cd74eaa8d829e378f745d81b9fcdbb53 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Tue, 3 Jan 2012 17:16:33 +0100 Subject: [PATCH] Duplicate column name in query, do'h! --- src/IDF/Views.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Views.php b/src/IDF/Views.php index ecc526f..85dfa9b 100644 --- a/src/IDF/Views.php +++ b/src/IDF/Views.php @@ -409,7 +409,7 @@ class IDF_Views foreach ($rows as $row) { $ids[] = $row->model_id; } - $authSql->SOr(new Pluf_SQL(sprintf('id IN (%s)', implode(', ', $ids)))); + $authSql->SOr(new Pluf_SQL(sprintf($db->pfx.'idf_projects.id IN (%s)', implode(', ', $ids)))); } $sql->SAnd($authSql); }