change on function allbrands  i select the brands from items table then select all the bran id from the table brands