Just for the context, this is a CTF and the goal is to extract data out of a SQL database. (MariaDB 10.1.37). The only way to get information out is to use Error based SQLI.