....I..... [RSM-1] fix SQL bug when getting item results from the database