def METHOD_NAME(self, question, table_name):
    sql = "select answer from " + table_name + " where question = '" + question + "';"
    try:
        self.cursor.execute(sql)
        results = self.cursor.fetchall()
        LOGGER.debug("MYSQL search by question.")
        if results:
            return results[0][0]
        else:
            return results
    except Exception as e:
        LOGGER.error(f"MYSQL ERROR: {e} with sql: {sql}".format(e, sql))
        sys.exit(1)