Displaying sql error when failing to fetch inbox messages