Fixing bug in old passwords fix. A semi colon was placed wrongly inside the query