Fixed uploader: SQL ambiguity
This commit is contained in:
parent
765d553a84
commit
fadd37fe84
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue