[BUG BASH] The value returned by select statement is inconsistent with data in database