diff --git a/pkg/models/querybuilder_studio.go b/pkg/models/querybuilder_studio.go index 4c3a430dd..10071775c 100644 --- a/pkg/models/querybuilder_studio.go +++ b/pkg/models/querybuilder_studio.go @@ -85,6 +85,9 @@ func (qb *StudioQueryBuilder) Query(findFilter *FindFilterType) ([]*Studio, int) var havingClauses []string var args []interface{} body := selectDistinctIDs("studios") + body += ` + join scenes on studios.id = scenes.studio_id + ` if q := findFilter.Q; q != nil && *q != "" { searchColumns := []string{"studios.name"}