try bugfix reward sql