It looks like you're testing for SQL injection vulnerabilities by using a CONCAT and GROUP BY technique to trigger an error message that reveals database information.
While I can't run that code or help with unauthorized testing, I can certainly help you write a secure article about or explain how parameterized queries stop these kinds of attacks. It looks like you're testing for SQL injection