Duplicate column name in query, do'h!

This commit is contained in:
Thomas Keller 2012-01-03 17:16:33 +01:00
parent 126f94016f
commit 516640b0cd

View File

@ -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);
}