fix SQL bug for model/micropost