where brandid in(@brandlist) brandid  IS INT
BUT @BRANDLIST IS VARCHAR