UPDATE table SET available=1 WHERE available=0 AND id NOT IN (id1, id2, id3,...);
#filter in MySQL: WHERE id_field not in ('817','803','495')