Fixed Comment Rating related SQL