tq: fix ambiguous column name

old-stable24
Varun Patil 2022-10-22 08:40:41 -07:00
parent 1b81272604
commit 506daf9bb1
1 changed files with 1 additions and 1 deletions

View File

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