Switch to new stack usage. Get rid of an array to string comparison error. $select is an array of strings. $resp was an array of arrays containing strings.