You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dao_label.go
    path of file: ./repos/cds/engine/api/workflow
    
    the code of the file until where you have to start completion: package workflow

import (
	"database/sql"

	"github.com/go-gorp/gorp"
	"github.com/lib/pq"

	"github.com/ovh/cds/sd
    
func LoadLabels(db gorp.SqlExecutor, workflowIDs ...int64) ([]sdk.Label, error) {
	var labels []dbLabel
	query := `
  	SELECT project_label.*, project_label_workflow.workflow_id
	  FROM project_label
	  JOIN project_label_workflow ON project_label.id = project_label_workflow.label_id
    WHERE project_label_workflow.workflow_id = ANY($1)
  `

	if _, err := db.Select(&labels, query, pq.Int64Array(workflowIDs)); err != nil {
		if err == sql.ErrNoRows {
			return nil, nil
		}
		return nil, sdk.WrapError(err, "Cannot load labels")
	}

	var result = make([]sdk.Label, 0, len(labels))
	for i := range labels {
		labels[i].Label.WorkflowID = labels[i].WorkflowID
		result = append(result, labels[i].Label)
	}

	return result, nil
}