From fadd37fe84981a92ad77505cbd6a79ef2d69e8f5 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 12 Oct 2014 10:25:03 +0200 Subject: [PATCH] Fixed uploader: SQL ambiguity --- src/Dao/PostDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dao/PostDao.php b/src/Dao/PostDao.php index 3723bdf0..b28daafb 100644 --- a/src/Dao/PostDao.php +++ b/src/Dao/PostDao.php @@ -149,7 +149,7 @@ class PostDao extends AbstractDao implements ICrudDao elseif ($requirement->getType() === PostFilter::REQUIREMENT_UPLOADER) { - $query->innerJoin('users uploader ON uploader.id = userId'); + $query->innerJoin('users uploader ON uploader.id = posts.userId'); } elseif ($requirement->getType() === PostFilter::REQUIREMENT_USER_SCORE)