SQL joins question

Do you have a space between group.idINNER JOIN users?
In your code and log file, it looks like the space is missing.