fix don't use == in SQL