def get_categories_by_category_type_id_and_name(conn, category_name, category_type_id):
    if (is_conn(conn) and is_int(category_type_id) and is_str(category_name)):
        cursor = conn.cursor()
        cursor.execute('SELECT * FROM dbo.Categories WHERE             CategoryName=? AND CategoryType=?', category_name, category_type_id)
        rows = cursor.fetchall()
        return rows
    else:
        raise AttributeError('Connection object or Category ID or Query ID                 was not provided')
def get_categories_by_category_type_id_and_name(conn, category_name, category_type_id):
    if (is_conn(conn) and is_int(category_type_id) and is_str(category_name)):
        cursor = conn.cursor()
        cursor.execute('SELECT * FROM dbo.Categories WHERE             CategoryName=? AND CategoryType=?', category_name, category_type_id)
        rows = cursor.fetchall()
        return rows
    else:
        raise AttributeError('Connection object or Category ID or Query ID                 was not provided')