Fixed uploader: SQL ambiguity

This commit is contained in:
Marcin Kurczewski 2014-10-12 10:25:03 +02:00
parent 765d553a84
commit fadd37fe84

View file

@ -149,7 +149,7 @@ class PostDao extends AbstractDao implements ICrudDao
elseif ($requirement->getType() === PostFilter::REQUIREMENT_UPLOADER) 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) elseif ($requirement->getType() === PostFilter::REQUIREMENT_USER_SCORE)