Fixed the wrong column for postgresql