def mysql_select_one(conn, query, query_args=None):
    """
    Fetches the first record matching the given query

    :param conn: Mysql Connection
    :param query: The SELECT query to run
    :param query_args: Query arguments
    :return: Result
    """
    # Return first row of result object
    cursor = conn.cursor(dictionary=True)
    cursor.execute(query, query_args)
    row = cursor.fetchone()
    cursor.close()
    return row