Please utilize queryDB for any MySQL queries. You can find documentation right here : https://demo.atutorspaces.com/documentation/developer/guidelines.html#querydb

Read it carefully since this function incorporates sanitization of the passed arguments.