=query(IMPORTRANGE("URL","Audit Template!A1:AD994"), "SELECT a,b,c,g,p WHERE b = 'name’ AND p = 'yes'")
error:
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "yes "" at line 1, column 55. Was expecting one of: "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "and" ... "or" ...