tq: fix ambiguous column name

old-stable24
Varun Patil 2022-10-22 08:40:41 -07:00
parent 05a7cfa6ee
commit 488ad4f574
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ trait TimelineQueryFaces
// Join with cluster
$nameField = is_numeric($faceName) ? 'rfc.id' : 'rfc.title';
$query->innerJoin('m', 'recognize_face_clusters', 'rfc', $query->expr()->andX(
$query->expr()->eq('user_id', $query->createNamedParameter($faceUid)),
$query->expr()->eq('rfc.user_id', $query->createNamedParameter($faceUid)),
$query->expr()->eq($nameField, $query->createNamedParameter($faceName)),
));