Counting user’s comments – efficient way?

Depends on how many users you have, but it’s probably fine.

You could also just keep a running count of comments made by registered user, and add when they comment / subtract when a comment of them gets deleted or rejected / marked as spam.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)