Bug in Suchfunktion behoben
This commit is contained in:
@ -169,14 +169,18 @@ func (db *DB) GetOverviewTableDataByName(n string) ([]OverviewTableData, error)
|
||||
ON b.id = g.briefing_id
|
||||
INNER JOIN participants AS p
|
||||
ON p.id = g.participant_id
|
||||
INNER JOIN questions AS q
|
||||
ON q.id = g.question_id
|
||||
INNER JOIN instructors AS i
|
||||
ON i.id = b.instructor_id
|
||||
WHERE
|
||||
q.id = 1 AND
|
||||
i.first_name LIKE ? OR
|
||||
i.last_name LIKE ? OR
|
||||
p.first_name LIKE ? OR
|
||||
p.last_name LIKE ?
|
||||
(
|
||||
i.first_name LIKE ? OR
|
||||
i.last_name LIKE ? OR
|
||||
p.first_name LIKE ? OR
|
||||
p.last_name LIKE ?
|
||||
)
|
||||
ORDER BY
|
||||
b.id DESC,
|
||||
p.id
|
||||
|
Reference in New Issue
Block a user