SQL syntax issue

I got syntax error in this sql query in mysql 8. How to fix this ?

try to use capital letter “SELECT”

got it resolved.
I need to remove privileges keyword only.