Kim Barker Interview, plus links to author biography, book summaries, excerpts and reviews

Kim Barker
Photo: William Coupon

Kim Barker

An interview with Kim Barker

Kim Barker shares an introductory letter to readers of The Taliban Shuffle and, in an in-depth interview, talks about her years reporting in Pakistan and Afghanistan.

When I arrived in India in 2004, I started keeping notes on everything, always with the intent of writing that foreign-correspondent tome that every foreign correspondent seems to write. I just didn't know which one. Serious and noteworthy, I figured. I had won most of my journalism awards at The Seattle Times for being a good digger, a good investigative reporter. And I was great at pathos. I could do grim with the best of them.

It didn't work out that way.

The germ of this book started over cocktails in Kabul, no doubt. Someone needed to write a book about the crazy social scene, the disco and toga parties, the fact that the constraints of working in Afghanistan and the desire for release turned everything into a drunken fraternity party. Somebody needed to update M*A*S*H. At least, that's what everyone said, while drinking bootlegged bottles of Jacob's Creek red that stained our teeth purple and cost $40 instead of $6. All the journalists joked about doing such a book, but buried with daily stories and the increasingly grim scene, no one did.

I thought about it - but I wanted any book to be bigger than that. While in the U.S. in 2007, suffering from sinusitis, flying high on cold medicine, I thought: David Sedaris meets the war on terror. Now there was a challenge. Humor is subjective, and funny is tough to write, especially funny involving war. This way, I could take the Kabul parties and blend that scene with my other travels.

For years it was just an idea. But after my job came to an end in 2009, I decided to take a risk and try to write it.

The title "The Taliban Shuffle" came long before the book. That's what all the journalists and the militants did - shuffling back and forth across the vague border between Pakistan and Afghanistan. I then decided to use song titles off my iPod as chapter titles, coming up with a new shuffle play list, the Taliban shuffle. The book is divided into two sections: "Kabul High," which chronicles the adrenaline-fueled life of expats in Afghanistan, and "Whack-A-Stan," which chronicles my time in Pakistan and also highlights U.S. strategy in the region, which occasionally resembles the old carnival game, Whac-A-Mole. (Hit the mole in one place, and it only pops out somewhere else.)

The book itself took seven months of writing, two months of procrastinating and five months of occasionally looking at it and editing. In a way, it had written itself over six years, through emails and journals. Writing was cathartic - doesn't every foreign correspondent say that? It's not as if I was rewriting history through humor - most Afghans and Pakistanis are hilarious, and gallows humor is the prevalent form there. But through this book, I could finally write through everything I had seen in a way that somehow made sense, even when it didn't make any kind of sense whatsoever, and in a way that normal people might want to read. Whenever I'm asked about what it was like in Afghanistan and Pakistan, I have an easy one-word response: Absurd. I think The Taliban Shuffle reflects that.

When I read the book now, I still laugh, but I also feel a sense of fury in it - fury at how all those hopes in Afghanistan were dashed, fury at the lost chances, fury at what's happened to the newspaper industry. Maybe that's why it moves so quickly.

I made some clear choices in the book. It is about how people live, not how they die, at least most of the time. It is deliberately self-deprecating. I didn't want to write a book about how a foreign correspondent goes into a country, inexplicably knows everything and comes across as some kind of hero. I've read that book. I wanted the reader to come on a journey with me - in many ways, I became a foil for the U.S., well-intentioned but bumbling. And in many ways, my translator/fixer/close friend Farouq is the best of Afghanistan - proud, clever and patriotic. Samad and Tammy are the best of Pakistan.

- Kim Barker



Kim Barker discusses her memoir, The Taliban Shuffle, a true life Catch-22 about her years reporting in Pakistan and Afghanistan

In The Taliban Shuffle it seemed that you connected more with Afghanistan than you did with Pakistan. Why is that?


In some part, I connected more to Afghanistan because I connected more to FarouIn Pakistan, I struggled more to find a translator and a team that I could trust. But I also connected more to Afghanistan because it just seemed so much more interesting – wild, stark, beautiful. From the beginning, it felt like the most foreign place I could imagine. Also in Afghanistan, it was much easier to do good stories. People talked to me. I could interview the country's interior minister, the foreign minister, with little problem. In Pakistan, the red tape was entrenched, the country was more advanced. Islamabad felt like a cookie-cutter capital from anywhere in the West. Work was also more of a challenge. Talking to a top level official was often impossible. The government also regulatedwhere we could go – or more accurately, where we couldn't. I got tired at points of all the smoke and mirrors there.


The Pashtun code heavily influenced your interactions in Afghanistan, from your relationship with your fixer to your interviews with warlords. Can you explain common customs and how they helped or hinder your reporting? Also, does the United States understand this aspect of the culture and respond effectively?


The code is complicated, and in certain parts it's been eroded by war or modern life, but in very simple terms the code means a mix of hospitality, revenge, pride and eye-for-an-eye justice. This can seem confusing, in that most Pashtuns will welcome strangers into their homes – such as me, such as U.S. troops – and serve tea and elaborate meals. That doesn't necessarily mean the stranger is a friend, but if called to protect that stranger, the host family usually will. The code also means that if something happens to a member of the tribe, the entire tribe is obligated to take revenge. The longer the revenge takes, the more elaborate, the better. With pride – let's just say insulting a Pashtun's pride or shaming him will not necessarily bring you the result you want. The justice system can often seem barbaric to the West – trading a young daughter to a family to settle a blood feud – but it's still the way a lot of people live in rural areas. Obviously, parts of the Pashtun code were a huge help to me as a reporter. I could just show up at someone's doorstep and be invited in – even though I was a woman, most men would talk to me – and served tea and lunch. As long as I didn't insult anyone (and Farouq prevented me from doing so), I was welcome. The code also meant that if ever something went wrong in a rural area, we knew we could probably find refuge.

I think the United States understands that the code exists and what it means, much more so now than in the very beginning. But practically, it's difficult. U.S. troops usually travel around with guns and body armor – what choice do they have? Yet this is not necessarily seen as good guest behavior in Afghanistan. Also, civilian casualties are inevitable in war. But the increasing numbers of those casualties in insurgent hotbeds have only turned more people against the U.S. and NATO-led troops. I think the U.S. understands this. But I don't know that officials have yet come up with a satisfying answer to the dilemma.

I also think that U.S. troops and some Western development workers continue to mistake Pashtun hospitality for support for the mission. They're just not the same.


You developed a very strong friendship and professional relationship with Farouq, your fixer and translator. You relied on him for your travels, interviews, survival and success in Afghanistan. And, while it's clear how much respect and admiration you two have for each other, you often butted heads. You even describe your interactions as being like an old married couple. Please tell us more about your friendship with Farouq and the closeness and difficulties of the working relationship between a journalist and his or her fixer.

A fixer is essentially a journalist's paid best friend – or at least, that's how the relationship starts out. In a country like Afghanistan, I'd sometimes go days without interviewing anyone who spoke English. If I didn't have Farouq, or someone like him, I just couldn't work. Since Farouq and I worked together for so long, though, we had a much different relationship than other fixers andjournalists. He was one of the first fixers I ever worked with. I knew him when he was single – now he is married to a wonderful woman and has three children. He knew me when I was so green, I thought it was a good idea to tell a warlord he seemed like a nice guy. In many ways, we grew up together. During that time, I evolved from someone who needed Farouq for everything to someone who was much more independent and savvy. Farouq evolved from his life revolving around work to his life revolving more around family. We definitely argued at times, but any time you spend that much time with the same person – when you know each other that well – you inevitably butt heads. Especially when you each have a strong personality. We're still close, even though we're no longer in the same country. I've visited him. His children call me "auntie." We talk every week or two. I'd like Farouq to visit the U.S., but getting him a visa has proved problematic.


Over the five years you lived in Asia, you went on seven different embeds with the U.S. military in Afghanistan. What surprised you? Was each one unique? Any common strands between all seven? And what sweeping changes did you noticed from 2005 to 2009?

Embeds were all fairly similar, except for the one I did in Helmand, at a brand new forward-operating base. That was definitely the most primitive, definitely the one where I felt most at risk outside the wire. I was most surprised about how much U.S. troops talked to me about their personal lives, about what they really thought about what was happening. Most seemed very savvy, funny, dark. As the war progressed, there was definitely more of an understanding about Afghanistan, especially with troops who had been there before. But I also noticed much more of a weariness, a fatigue from pinballing between wars, and an underlying cynicism about what they would be able to accomplish.


Even though The Taliban Shuffle is a book about war and describes and comments on extremely serious events and consequences, there is a lot of humor— sometimes dark, sometimes laugh-out-loud funny—throughout. Do you often find humor in the absurd? Or, was this something that began when you were reporting abroad to make sense of your day-to-day life? Why was it important to you to imbue your story with wit and comedy?

I have always used humor as a way to cope with difficult situations, and I have always seen humor in the absurd. My parents forced me to watch M*A*S*H every week as a kid – maybe it stuck. I really wanted to write this story with wit because of three reasons. It was the only way I could make sense of the absurdity over there. I thought more people might be likely to read it, and learn about Afghanistan and Pakistan as a byproduct of the humor. And most Afghans and Pakistanis I know have a wicked sense of humor – when I told friends about what I was doing, they got it immediately.


You credit your ass for getting you into trouble, but also for getting you interviews. You were pinched and harassed so often in crowds that you were once offered shelter in the car of the chief justice of Pakistan, Iftikhar Muhammad Chaudhry, and you were suddenly granted direct access to Chaudhry. Shockingly, you were even pinched and prodded at Benazir Bhutto's funeral. How did you deal with such harassment? Was it continually surprising or something you grew to deal with?

I dealt with it violently. I punched people. I yelled. Some friends have suggested I shouldn't have been quite so honest about my violence in the book, because it makes me unlikeable at a point. But it's the truth. And I wasn't likeable at a point. At times, I was just very angry. I write about what happened in a very funny way, but whenever I was grabbed, it wasn't funny at all. I felt a violent rage. I wanted to hurt people. I never grew to deal with it. I never just accepted it. It always angered me. And as a foreign woman, I had it easy. Local women suffered much worse. And they could rarely do anything about it.

Pakistan's ex-Prime Minister Nawaz Sharif pursues you romantically and asks you to be his ‘friend.' Can you describe this bizarre experience? Did women journalists often encounter such situations?

In the beginning, I just thought: Great. I've got a source that no one else has, the former prime minister of Pakistan. I didn't think that there was any way he was interested in me romantically – he was older, married, and I was just not the kind of woman that a man like that would pursue. Eventually, he offered to set me up on a date – although I found that strange, Pakistani friends told me that he was probably just playing matchmaker, and that this was part of his sense of humor. Soon, though, it became clear that he had romantic intentions. At a certainpoint, I had to stop interviewing him, because I found it too awkward.

Women journalists often encounter such situations, butprobably not to this extent. I've thought about it – what did I do to encourage Nawaz Sharif? Maybe it's because I like to joke around with people – even world leaders. It's part of my personality, this tendency to be irreverent and find humor wherever I can. He just misinterpreted this.


In TheTaliban Shuffle you describe the parties and decadence of foreigners: toga parties, dance and trampoline parties, karaoke nights. Is this a little-spoken-about pastime for journalists, embassy workers and NGO workers? Were the parties a necessity to counterbalance the grueling days?

It's not so unspoken about – journalists have certainly written about the social scene in a war zone, the decadence that comes. I think it's only natural. When people are cooped up all day, driven from home to work in armored cars, never allowed to go outside and play, and all they do is work, there's a natural desire for release, for escape. When there is danger, when something bad happens, people sometimes react by looking for company, for a temporary numbness. Living inAfghanistan is not easy. Parties and going out at night became a natural pressure release.

In writing about this scene, though, I wanted to be very careful not to portray myself as the journalist looking in at all this decadence, as somehow above it. I've seen stories written like that. But let's face it: The journalists were all hanging out at restaurants like L'Atmosphere just as much as anyone else, if not more so.


What was your most trying moment while reporting and where?

Most definitely, in the aftermath of the bombing at Benazir Bhutto's homecoming in Karachi in October 2007. More than 140 people died. The police invited me into the crime scene, showed me the head of the bomber, body parts. I leaned on a railing of Bhutto's armored truck – I put my hand in something I shouldn't, then wiped it on my jeans. I washed my shoes off, but I threw them away as soon as possible. In all my reporting, I had always tried not to become cynical, to see each victim as a human being with a family. Only that way could I write a compelling story. But there was just so much death here, an overwhelming amount. That night still bothers me.


What was your favorite experience that you took away from your travels and reporting?

It's incredibly tough to pick one. All of my favorite experiences revolve around being invited into people's homes, included in their lives. Like with Samad, my driver in Pakistan. He called me "sister," he let me come with him when he picked out a goat for the Eid al-Adha holiday, he let me into his home. His mother petted my hair – our only real way of communicating – and we ate on the floor. I liked getting to know people so well that I was no longer a special guest, that I was just a friend. I miss those small moments more than any grand event.

Unless otherwise stated, this interview was conducted at the time the book was first published, and is reproduced with permission of the publisher. This interview may not be reproduced or reprinted without permission in writing from the copyright holder.

Membership Advantages
  • Reviews
  • "Beyond the Book" articles
  • Free books to read and review (US only)
  • Find books by time period, setting & theme
  • Read-alike suggestions by book and author
  • Book club discussions
  • and much more!
  • Just $60 for 12 months or $20 for 3 months.
  • More about membership!

Books by this Author

Books by Kim Barker at BookBrowse
The Taliban Shuffle jacket
Membership Advantages
  • Reviews
  • "Beyond the Book" articles
  • Free books to read and review (US only)
  • Find books by time period, setting & theme
  • Read-alike suggestions by book and author
  • Book club discussions
  • and much more!
  • Just $60 for 12 months or $20 for 3 months.
  • More about membership!

Read-Alikes

All the books below are recommended as read-alikes for Kim Barker but some maybe more relevant to you than others depending on which books by the author you have read and enjoyed. So look for the suggested read-alikes by title linked on the right.
How we choose readalikes

  • David Abrams

    David Abrams

    David Abrams was born in Pennsylvania and grew up in Jackson, Wyoming. He earned a BA in English from the University of Oregon and an MFA in Creative Writing from the University of Alaska-Fairbanks. Abrams served in the U... (more)

    If you enjoyed:
    The Taliban Shuffle

    Try:
    Fobbit
    by David Abrams

  • Jasmine Aimaq

    Jasmine Aimaq

    Jasmine Aimaq was born in Germany to a Swedish mother and Afghan father. At age 4, she moved to Afghanistan with her parents and sister, and attended a French school in Kabul. They left the country in 1976, two years before ... (more)

    If you enjoyed:
    The Taliban Shuffle

    Try:
    The Opium Prince
    by Jasmine Aimaq

We recommend 8 similar authors

View all 8 Read-Alikes

Non-members can see 2 results. Become a member
Membership Advantages
  • Reviews
  • "Beyond the Book" articles
  • Free books to read and review (US only)
  • Find books by time period, setting & theme
  • Read-alike suggestions by book and author
  • Book club discussions
  • and much more!
  • Just $60 for 12 months or $20 for 3 months.
  • More about membership!

BookBrowse Book Club

Book Jacket
The Cover Girl
by Amy Rossi
Find them early enough, and they will always be her girls.

Members Recommend

  • Book Jacket
    The Sister's Curse
    by Nicola Solvinic
  • Book Jacket
    The Lost Story of Eva Fuentes
    by Chanel Cleeton
    A mysterious book links three women across generations in this novel by New York Times bestselling author Chanel Cleeton.
  • Book Jacket
    The Vanishing Place
    by Zoë Rankin
Who Said...

The fact of knowing how to read is nothing, the whole point is knowing what to read.

Click Here to find out who said this, as well as discovering other famous literary quotes!

Book
Trivia
  • Book Trivia

    Can you name the title?

    Test your book knowledge with our daily trivia challenge!

Wordplay

Solve this clue:

W the C A the M W P

and be entered to win..

Your guide toexceptional          books

BookBrowse seeks out and recommends the best in contemporary fiction and nonfiction—books that not only engage and entertain but also deepen our understanding of ourselves and the world around us.

 


Debugging Information
ColdFusion Server Developer 2021,0,13,330286
Template /author_interviews/full/index.cfm
Time Stamp 01-Jun-26 06:44 AM
Locale en
User Agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Remote IP 127.0.0.1
Host Name 127.0.0.1


Execution Time

Total Time Avg Time Count Template
1780296279444 ms 1.78029627944E+012 ms 1 /root/website/app_server.cfm
297 ms 297 ms 1 /root/website/author_interviews/full/index.cfm
132 ms 132 ms 1 /root/website/app_layout.cfm
90 ms 90 ms 1 /root/website/app_globals.cfm
86 ms 86 ms 1 /root/website/site/blocks/layout/dsp_right_column.cfm
77 ms 26 ms 3 /root/website/adsystem/adsystem_mod.cfm
50 ms 50 ms 1 /root/website/author_interviews/full/dsp_main.cfm
41 ms 41 ms 1 /root/website/site/blocks/dsp_border_first_impressions.cfm
40 ms 40 ms 1 /root/website/queries/qry_get_arcs_for_ad.cfm
36 ms 36 ms 1 /root/website/site/blocks/layout/dsp_footer.cfm
34 ms 34 ms 1 /root/website/adzones/showcase_track.cfm
33 ms 33 ms 1 /root/website/adzones/AdZone6.cfm
22 ms 22 ms 1 /root/website/queries/qry_get_active_obc.cfm
14 ms 7 ms 2 /root/website/queries/qry_get_books_by_author_id.cfm
14 ms 5 ms 3 /root/website/site/blocks/membership_advantages.cfm
12 ms 3 ms 4 /root/website/actions/act_spider_tracker.cfm
12 ms 12 ms 1 /root/website/adzones/AdZone2.cfm
12 ms 4 ms 3 /root/website/queries/qry_get_member_account_types.cfm
11 ms 11 ms 1 /root/website/act_check_login.cfm
10 ms 10 ms 1 /root/website/queries/qry_get_bb_briefs_by_author.cfm
9 ms 9 ms 1 /root/website/site/blocks/dsp_book_giveaway.cfm
8 ms 8 ms 1 /root/website/actions/adstatus.cfm
8 ms 8 ms 1 /root/website/queries/qry_get_current_competition.cfm
8 ms 8 ms 1 /root/website/site/blocks/layout/dsp_header.cfm
7 ms 7 ms 1 /root/website/queries/qry_get_member_info.cfm
5 ms 5 ms 1 /root/website/queries/qry_get_author_readalikes_by_id.cfm
5 ms 5 ms 1 /root/website/queries/qry_get_current_wordplay.cfm
4 ms 4 ms 1 /root/website/queries/qry_get_all_books_by_author_id.cfm
4 ms 4 ms 1 /root/website/queries/qry_get_books_by_author_id_lite.cfm
1 ms 1 ms 1 /root/website/queries/qry_get_current_ezine.cfm
1 ms 1 ms 1 /root/website/queries/qry_get_free_newsletters.cfm
1 ms 1 ms 1 /root/website/site/blocks/layout/dsp_bottom_block.cfm
1 ms 1 ms 1 /root/website/site/blocks/layout/head.cfm
1 ms 1 ms 1 /root/website/site/blocks/layout/main_menu.cfm
0 ms 0 ms 1 /root/website/Application.cfm
0 ms 0 ms 1 /root/website/act_libraryIPLogin.cfm
0 ms 0 ms 1 /root/website/actions/udfs.cfm
0 ms 0 ms 1 /root/website/banners/ad_594.cfm
0 ms 0 ms 1 /root/website/formurl2attributes.cfm
0 ms 0 ms 1 /root/website/js/fbjavascriptsdk.cfm
0 ms 0 ms 1 /root/website/queries/qry_get_previous_arcs_for_ad.cfm
0 ms 0 ms 1 /root/website/site/blocks/dsp_border_booktalk.cfm
0 ms 0 ms 1 /root/website/site/blocks/dsp_header_newsletter.cfm
0 ms 0 ms 1 /root/website/site/blocks/dsp_top_author_block.cfm
0 ms 0 ms 1 /root/website/site/blocks/dsp_wordplay.cfm
0 ms 0 ms 1 /root/website/site/blocks/email_modal.cfm
0 ms 0 ms 1 /root/website/site/blocks/layout/google_tags.cfm
0 ms 0 ms 1 /root/website/site/blocks/layout/header_announcement.cfm
0 ms 0 ms 1 /root/website/site/blocks/layout/main_search.cfm
1 ms  STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
298 ms  TOTAL EXECUTION TIME
red = over 250 ms average execution time


SQL Queries

spidercheck (Datasource=bookbrowse_com_new, Time=5ms, Records=1) in /root/website/actions/act_spider_tracker.cfm @ 06:44:39.039
SELECT	a.bot_number
        FROM	bots a
        WHERE	charindex(a.bot_name, ?) > 0
		OR a.bot_ip = ?
Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Parameter #2(cf_sql_varchar) = 127.0.0.1

get_member_info (Datasource=bookbrowse_com_new, Time=5ms, Records=0) in /root/website/queries/qry_get_member_info.cfm @ 06:44:39.039
select 	a.*, 
    		b.member_account_type_name, b.member_account_type_charge, b.member_account_type_charge_frequency,  b.member_account_type_months, 
            c.member_chargetype_name, c.member_chargetype_number, a.member_classification_number, a.member_book_format
	
    from members a, member_account_types b, member_chargetype c
	
    where a.member_account_type_number = b.member_account_type_number
	and a.payment_method_id = c.member_chargetype_number
	and a.member_number = ?
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 0

adactive (Datasource=bookbrowse_com_new, Time=7ms, Records=2) in /root/website/actions/adstatus.cfm @ 06:44:39.039
SELECT	viewby, section
    FROM	adsystem 
    WHERE	active  = 1 
    AND		start_date <= GETDATE()
    AND 	(viewby = ? OR viewby = 'all')
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = non

get_current_ezine (Datasource=bookbrowse_com_new, Time=0ms, Records=1, Cached Query) in /root/website/queries/qry_get_current_ezine.cfm @ 06:44:39.039
select		top 1 ezine_number, ezine_dt, ezine_image, ezine_brief_description, ezine_introduction
from		ezines
where		ezine_active_flag = 1
and 		ezine_type_number = 4
and			ezine_dt < getdate()
order by 	ezine_dt DESC
get_current_wordplay (Datasource=bookbrowse_com_new, Time=4ms, Records=1) in /root/website/queries/qry_get_current_wordplay.cfm @ 06:44:39.039
SELECT		a.wordplay_number, a.wordplay_dt, a.wordplay_name, a.wordplay_intro_text, b.wordplay_puzzle_number, b.wordplay_puzzle_question
    FROM		wordplays a 
	INNER JOIN	wordplay_puzzle_mapping c on c.wordplay_number = a.wordplay_number
	INNER JOIN	wordplay_puzzles b on b.wordplay_puzzle_number = c.wordplay_puzzle_number
	WHERE		a.wordplay_number = (	select top 1 a.wordplay_number
                                from wordplays a, wordplay_puzzles b, wordplay_puzzle_mapping c
                                where a.wordplay_number = c.wordplay_number
                                and b.wordplay_puzzle_number = c.wordplay_puzzle_number
                                and a.wordplay_dt < getdate()
                                and a.wordplay_expiration_dt > dateadd(day, -1, getdate())
                                order by a.wordplay_dt asc
                                )
get_ComNo (Datasource=bookbrowse_com_new, Time=3ms, Records=0) in /root/website/queries/qry_get_current_competition.cfm @ 06:44:39.039
SELECT 	TOP 1 	x.competition_number, x.bb_briefs_flag
	from			competitions x
	
		WHERE	x.competition_dt <= getdate()
		AND		x.competition_expiration_dt > dateadd(d,-1,getdate())
get_current_competition (Datasource=bookbrowse_com_new, Time=5ms, Records=0) in /root/website/queries/qry_get_current_competition.cfm @ 06:44:39.039
SELECT 	x.competition_number, x.book_number, x.competition_teaser_title, x.competition_teaser_description, x.competition_intro_text, x.competition_expiration_dt, x.bb_briefs_flag, x.competition_full_info_flag, x.competition_type, x.competition_optin,x.competition_optin_text, 
				a.book_title as "title",
				(b.author_first_name + ' ' +  b.author_middle_initial + ' ' + b.author_last_name) as "author",
	            f.edition_publish_dt AS "hardcover_publish_dt", f.edition_jacket_image as "hardcover_jacket_image",
				g.edition_publish_dt AS "paperback_publish_dt", g.edition_jacket_image as "paperback_jacket_image"
	
		FROM 		competitions x
		INNER JOIN	books a on a.book_number = x.book_number
		INNER JOIN	book_author_mapping c on c.book_number = x.book_number
		INNER JOIN	authors b on c.author_number = b.author_number
		LEFT JOIN	editions f on a.book_number = f.book_number and f.edition_paperback_flag = 0
		LEFT JOIN	editions g on a.book_number = g.book_number and g.edition_paperback_flag = 1

		WHERE		x.competition_number = ?
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 0

get_previous_arcs_for_ad (Datasource=bookbrowse_com_new, Time=0ms, Records=0, Cached Query) in /root/website/queries/qry_get_previous_arcs_for_ad.cfm @ 06:44:39.039
SELECT 	a.arc_number,a.arc_client_url,a.arc_active_dt, a.arc_off_ad_dt,
		b.ezine_preview_number, b.ezine_preview_title, b.ezine_preview_subtitle, b.ezine_preview_jacket_image, b.ezine_preview_author, b.ezine_preview_publisher, 
		b.ezine_preview_publish_dt, b.ezine_preview_jacket_desc, b.ezine_preview_number_of_pages, b.ezine_preview_bb_comments, b.ezine_preview_isbn13,
		c.ezine_preview_category_name AS "ezine_preview_category",
		(select count(*) from arc_allocator d where d.arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) as "reviews",
		(select (CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,0))) AS numeric(12,0)))+
				(CASE WHEN right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) > 25 AND right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) < 50 THEN 0.5
				 WHEN right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) > 50 AND right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) < 75 THEN -0.5
				 ELSE 0
				 END)
 			from arc_allocator	where arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) AS arcrating,
 			(select (CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,1))) AS numeric(12,1)))from arc_allocator where arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) AS "decrating"

FROM arcs a
INNER JOIN ezine_previews b ON b.ezine_preview_number = a.ezine_preview_number
INNER JOIN ezine_preview_categories c ON b.ezine_preview_category_number = c.ezine_preview_category_number

WHERE arc_closed_flag = 1
AND arc_obc_flag = 0
AND getdate() >= arc_on_ad_dt
AND getdate() < arc_off_ad_dt

ORDER BY a.arc_on_ad_dt DESC
get_future_obc (Datasource=bookbrowse_com_new, Time=7ms, Records=0) in /root/website/queries/qry_get_active_obc.cfm @ 06:44:39.039
SELECT 		a.arc_forumidfk, a.discourse_flag, a.arc_promo_text, arc_on_ad_dt,
				b.ezine_preview_number, b.ezine_preview_title, b.ezine_preview_subtitle, b.ezine_preview_jacket_image, b.ezine_preview_author, b.ezine_preview_jacket_desc, b.ezine_preview_publisher, ezine_preview_publish_dt, ezine_preview_number_of_pages, ezine_preview_isbn, ezine_preview_short_summary,
	            b.ezine_preview_bb_author_link, ezine_preview_bb_link
	
	FROM 		arcs a
	INNER JOIN 	ezine_previews b ON b.ezine_preview_number = a.ezine_preview_number
	
	WHERE 		arc_obc_flag = 1

	AND 		getdate() < arc_on_ad_dt
	
		ORDER BY  	NEWID()
get_active_obc (Datasource=bookbrowse_com_new, Time=3ms, Records=1) in /root/website/queries/qry_get_active_obc.cfm @ 06:44:39.039
SELECT 		a.arc_forumidfk, a.discourse_flag, a.arc_promo_text,
				b.ezine_preview_number, b.ezine_preview_title, b.ezine_preview_subtitle, b.ezine_preview_jacket_image, b.ezine_preview_author, b.ezine_preview_jacket_desc, b.ezine_preview_publisher, ezine_preview_publish_dt, ezine_preview_number_of_pages,  ezine_preview_isbn, ezine_preview_short_summary,
	            b.ezine_preview_bb_author_link, ezine_preview_bb_link,
	            c.book_reading_guide
	
	FROM 		arcs a
	INNER JOIN 	ezine_previews b ON b.ezine_preview_number = a.ezine_preview_number
	LEFT JOIN  	books c on c.book_number = b.ezine_preview_bb_link
	
	WHERE 		a.arc_obc_flag = 1
	AND			a.arc_active_flag = 0
	AND 		arc_closed_flag = 1
	AND 		getdate() >= arc_on_ad_dt
	AND 		getdate() < arc_off_ad_dt
	ORDER BY  	NEWID()
get_recent_obc (Datasource=bookbrowse_com_new, Time=4ms, Records=4) in /root/website/queries/qry_get_active_obc.cfm @ 06:44:39.039
SELECT 		a.arc_forumidfk, a.discourse_flag, a.arc_promo_text,
				b.ezine_preview_number, b.ezine_preview_title, b.ezine_preview_subtitle, b.ezine_preview_jacket_image, b.ezine_preview_author, b.ezine_preview_jacket_desc, b.ezine_preview_publisher, ezine_preview_publish_dt, ezine_preview_number_of_pages,  ezine_preview_isbn, ezine_preview_short_summary,
	            b.ezine_preview_bb_author_link, ezine_preview_bb_link,
	            c.book_reading_guide
	
	FROM 		arcs a
	INNER JOIN 	ezine_previews b ON b.ezine_preview_number = a.ezine_preview_number
	LEFT JOIN  	books c on c.book_number = b.ezine_preview_bb_link
	
	WHERE a.arc_number IN (select top 4 arc_number
							from		arcs
							WHERE 		arc_obc_flag = 1
							AND			arc_active_flag = 0
							AND 		arc_closed_flag = 1
							AND 		getdate() > arc_off_ad_dt
							ORDER BY	arc_on_ad_dt DESC)
	ORDER BY  	NEWID()
get_books_by_author_id (Datasource=bookbrowse_com_new, Time=1ms, Records=1) in /root/website/queries/qry_get_books_by_author_id_lite.cfm @ 06:44:39.039
select	a.book_number, a.book_title, a.book_sub_title, book_short_summary,
				(CASE WHEN f.edition_publish_dt < g.edition_publish_dt OR g.edition_publish_dt IS NULL THEN f.edition_publish_dt
                      ELSE g.edition_publish_dt 
                      END) "publish_dt"
		
        from 	books a
		inner join book_author_mapping e ON e.book_number = a.book_number
        inner join authors d ON d.author_number = e.author_number
        left outer join editions f ON a.book_number = f.book_number and f.edition_paperback_flag = 0 
   		left outer join editions g ON a.book_number = g.book_number and g.edition_paperback_flag = 1 
		
       	where 	d.author_number = ?
        and 	a.book_number IN (	select	distinct b.book_number 
        							from	categories a, category_book_mapping b 
                                    where 	a.category_number = b.category_number 
                                    and 	a.category_active_flag = 1)

		order by publish_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2047

get_author_by_author_id (Datasource=bookbrowse_com_new, Time=1ms, Records=1) in /root/website/queries/qry_get_books_by_author_id_lite.cfm @ 06:44:39.039
select	d.author_number, d.author_first_name, d.author_middle_initial, d.author_last_name, d.author_pronunciation,
				i.author_info_number, i.author_number, i.author_info_image, i.author_info_entry_dt,
                i.author_info_url, i.author_info_interview_summary, i.author_info_interview, i.author_info_biography, i.author_info_copyright_info
                		
        from 	authors d, author_info i
		
        where 	d.author_number = ?
        and 	d.author_number = i.author_number
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2047

get_all_books_by_author_id (Datasource=bookbrowse_com_new, Time=2ms, Records=1) in /root/website/queries/qry_get_all_books_by_author_id.cfm @ 06:44:39.039
select	a.book_number, 
        		'' AS ezine_preview_number,
                a.book_title, 
                a.book_sub_title, 
				(CASE WHEN f.edition_publish_dt < g.edition_publish_dt OR g.edition_publish_dt IS NULL THEN f.edition_publish_dt
                      ELSE g.edition_publish_dt 
                      END) "publish_dt",
                '' as "jacket"
		
        from 	books a
		inner join book_author_mapping e ON e.book_number = a.book_number
        inner join authors d ON d.author_number = e.author_number
		left outer join editions f ON a.book_number = f.book_number and f.edition_paperback_flag = 0
		left outer join editions g ON a.book_number = g.book_number and g.edition_paperback_flag = 1
		
        where 	d.author_number = ?
        and 	a.book_number IN (	select	distinct b.book_number 
        							from	categories a, category_book_mapping b 
                                    where 	a.category_number = b.category_number 
                                    and 	a.category_active_flag = 1)        
        UNION

		select	'' AS book_number,
        		ezine_preview_number, 
				ezine_preview_title AS "book_title", 
				ezine_preview_subtitle AS "book_sub_title",
                ezine_preview_publish_dt AS "publish_dt",
                ezine_preview_jacket_image as "jacket"
		
        from 	ezine_previews
		
        where 	ezine_preview_bb_author_link = ?
        and		ezine_preview_bb_link < 1
        
        order by publish_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2047
Parameter #2(CF_SQL_INTEGER) = 2047

get_bb_briefs_by_author (Datasource=bookbrowse_com_new, Time=10ms, Records=0) in /root/website/queries/qry_get_bb_briefs_by_author.cfm @ 06:44:39.039
select	ezine_preview_number, 
				ezine_preview_title, 
				ezine_preview_subtitle,
                ezine_preview_publish_dt ,
                ezine_preview_jacket_image
		
        from 	ezine_previews
		
        where 	ezine_preview_bb_author_link = ?
        and		(ezine_preview_bb_link IS NULL
				 or ezine_preview_bb_link < 1)
        and		ezine_number > 0
        
		order by ezine_preview_publish_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2047

get_author_readalikes_by_id (Datasource=bookbrowse_com_new, Time=4ms, Records=8) in /root/website/queries/qry_get_author_readalikes_by_id.cfm @ 06:44:39.039
SELECT		a.author_number,
			CASE	WHEN datalength(a.author_middle_initial) > 0 
					THEN a.author_first_name + ' ' + a.author_middle_initial + ' ' + a.author_last_name
					ELSE a.author_first_name + ' ' + a.author_last_name
					END AS "author_full_name",
			b.book_number, 
			f.book_title as "book",

			CASE	WHEN datalength(e.author_middle_initial) > 0 
					THEN e.author_first_name + ' ' + e.author_middle_initial + ' ' + e.author_last_name
					ELSE e.author_first_name + ' ' + e.author_last_name
					END AS "liked_author_full_name",
			e.author_number as "liked_author_number", 
			g.book_title as "liked_book",
			c.liked_book_number as "liked_book_number" 

FROM		authors a
INNER JOIN	book_author_mapping b ON b.author_number = a.author_number
INNER JOIN	liked c ON c.book_number = b.book_number
INNER JOIN	book_author_mapping d ON d.book_number = c.liked_book_number
INNER JOIN	authors e ON e.author_number = d.author_number
INNER JOIN	books f on f.book_number = b.book_number
INNER JOIN	books g on g.book_number = c.liked_book_number

WHERE		a.author_number = ?

ORDER BY 	e.author_last_name, e.author_first_name
Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 2047

get_ads (Datasource=bookbrowse_com_new, Time=6ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT		a.adid,	adweight
	FROM		adsystem a
	INNER JOIN 	ad_category_mapping b ON b.adid = a.adid
	WHERE		a.section = ?
	AND			a.active  = 1
	AND 		a.start_date <= GETDATE()
	
	AND (a.viewby LIKE '%n%' OR a.viewby = 'all')
            

	AND     (b.category_number IN (	SELECT	category_number
									FROM	category_book_mapping
									WHERE	book_number = ?)
      		OR 	b.category_number = ?)
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = adzone2
Parameter #2(CF_SQL_VARCHAR) = 0
Parameter #3(CF_SQL_VARCHAR) = 0

get_ads (Datasource=bookbrowse_com_new, Time=2ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT	a.adid,	adweight
        FROM	adsystem a
        WHERE	a.section = ? 
        AND 	a.active  = 1 
        AND		a.start_date <= GETDATE()	
        
        AND (a.viewby LIKE '%n%' OR a.viewby = 'all')
        AND (select count(*) from ad_category_mapping where datalength(category_number) >= 1 and adid = a.adid) = 0
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = adzone2

get_member_account_types (Datasource=bookbrowse_com_new, Time=5ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 06:44:39.039
select member_account_type_number, member_account_type_name, member_account_type_charge, member_account_type_charge_frequency, member_account_type_postscript, member_account_type_months, member_account_type_stripe_lookup_key
from member_account_types
where member_account_type_number = (select top 1 member_account_type_number
									from member_account_types
									where member_account_type_months = 12
									and member_account_type_public = 1
									order by member_account_type_charge ASC)
									
or member_account_type_number =		(select top 1 member_account_type_number
									from member_account_types
									where member_account_type_months = 3
									and member_account_type_public = 1
									order by member_account_type_charge ASC)
									
order by member_account_type_sort_order ASC
get_book_image (Datasource=bookbrowse_com_new, Time=1ms, Records=1) in /root/website/actions/udfs.cfm @ 06:44:39.039
select 	f.edition_publish_dt "hardcover_publish_dt", f.edition_jacket_image "hardcover_jacket_image", 
            g.edition_publish_dt "paperback_publish_dt", g.edition_jacket_image "paperback_jacket_image"
    
    from   	books a
	left join editions f on a.book_number = f.book_number and f.edition_paperback_flag = 0
	left join editions g on a.book_number = g.book_number and g.edition_paperback_flag = 1
                    
    where 	a.book_number = ?
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2575

get_member_account_types (Datasource=bookbrowse_com_new, Time=2ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 06:44:39.039
select member_account_type_number, member_account_type_name, member_account_type_charge, member_account_type_charge_frequency, member_account_type_postscript, member_account_type_months, member_account_type_stripe_lookup_key
from member_account_types
where member_account_type_number = (select top 1 member_account_type_number
									from member_account_types
									where member_account_type_months = 12
									and member_account_type_public = 1
									order by member_account_type_charge ASC)
									
or member_account_type_number =		(select top 1 member_account_type_number
									from member_account_types
									where member_account_type_months = 3
									and member_account_type_public = 1
									order by member_account_type_charge ASC)
									
order by member_account_type_sort_order ASC
get_books_by_author_id (Datasource=bookbrowse_com_new, Time=5ms, Records=1) in /root/website/queries/qry_get_books_by_author_id.cfm @ 06:44:39.039
select	a.book_number, 
				a.book_title, 
				(CASE WHEN UPPER(LEFT(a.book_title, 2)) = 'A ' THEN SUBSTRING(a.book_title, 3, len(a.book_title) - 2) WHEN UPPER(LEFT(a.book_title, 3)) = 'AN ' THEN SUBSTRING(a.book_title, 4, len(a.book_title) - 3) WHEN UPPER(LEFT(a.book_title, 4)) = 'THE ' THEN SUBSTRING(a.book_title, 5, len(a.book_title) - 4) ELSE a.book_title END) "sort_book_title", 
				a.book_sub_title, 
				a.book_entry_dt, 
				a.book_short_summary, 
				a.book_jacket_info, 
                a.book_excerpt, 
                a.book_reading_guide,
				d.author_number, d.author_first_name, d.author_middle_initial, d.author_last_name, 
				f.edition_publish_dt "hardcover_publish_dt", f.edition_number_of_pages "hardcover_number_of_pages", f.edition_isbn "hardcover_isbn", f.edition_isbn13 "hardcover_isbn13",f.edition_jacket_image "hardcover_jacket_image",
				g.edition_publish_dt "paperback_publish_dt", g.edition_number_of_pages "paperback_number_of_pages", g.edition_isbn "paperback_isbn", g.edition_isbn13 "paperback_isbn13",g.edition_jacket_image "paperback_jacket_image",
				i.author_info_biography, i.author_info_interview, i.author_info_image, i.author_info_url,
                (select count(c.book_number) as "author_bookcount" from book_author_mapping c where c.author_number = ?) + (select count(e.ezine_preview_number) as "author_bookcount" from ezine_previews e where e.ezine_preview_bb_author_link = ?) as "authorbookcount"
                
		    from books a
            inner join book_author_mapping e ON a.book_number = e.book_number
            inner join authors d ON e.author_number = d.author_number
            inner join author_info i ON d.author_number = i.author_number
            left outer join editions f ON a.book_number = f.book_number and f.edition_paperback_flag = 0
            left outer join editions g ON a.book_number = g.book_number and g.edition_paperback_flag = 1
                        
            where e.author_number = ?
            and a.book_number IN (select distinct b.book_number from categories a, category_book_mapping b where a.category_number = b.category_number and a.category_active_flag = 1)
			
            order by sort_book_title
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2219
Parameter #2(CF_SQL_INTEGER) = 2219
Parameter #3(CF_SQL_INTEGER) = 2219

get_author_by_author_id (Datasource=bookbrowse_com_new, Time=1ms, Records=1) in /root/website/queries/qry_get_books_by_author_id.cfm @ 06:44:39.039
select	d.author_number, d.author_first_name, d.author_middle_initial, d.author_last_name, d.author_pronunciation,
                CASE	WHEN datalength(d.author_middle_initial) > 0 
                        THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
                        ELSE d.author_first_name + ' ' + d.author_last_name
                        END AS "author_full_name",
				i.author_info_number, i.author_number, i.author_info_image, i.author_info_entry_dt,
                i.author_info_url, i.author_info_interview_summary, i.author_info_interview, i.author_info_biography, i.author_info_copyright_info
                		
        from 	authors d, author_info i
		
        where 	d.author_number = ?
        and 	d.author_number = i.author_number
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 2219

get_books_by_author_id (Datasource=bookbrowse_com_new, Time=4ms, Records=1) in /root/website/queries/qry_get_books_by_author_id.cfm @ 06:44:39.039
select	a.book_number, 
				a.book_title, 
				(CASE WHEN UPPER(LEFT(a.book_title, 2)) = 'A ' THEN SUBSTRING(a.book_title, 3, len(a.book_title) - 2) WHEN UPPER(LEFT(a.book_title, 3)) = 'AN ' THEN SUBSTRING(a.book_title, 4, len(a.book_title) - 3) WHEN UPPER(LEFT(a.book_title, 4)) = 'THE ' THEN SUBSTRING(a.book_title, 5, len(a.book_title) - 4) ELSE a.book_title END) "sort_book_title", 
				a.book_sub_title, 
				a.book_entry_dt, 
				a.book_short_summary, 
				a.book_jacket_info, 
                a.book_excerpt, 
                a.book_reading_guide,
				d.author_number, d.author_first_name, d.author_middle_initial, d.author_last_name, 
				f.edition_publish_dt "hardcover_publish_dt", f.edition_number_of_pages "hardcover_number_of_pages", f.edition_isbn "hardcover_isbn", f.edition_isbn13 "hardcover_isbn13",f.edition_jacket_image "hardcover_jacket_image",
				g.edition_publish_dt "paperback_publish_dt", g.edition_number_of_pages "paperback_number_of_pages", g.edition_isbn "paperback_isbn", g.edition_isbn13 "paperback_isbn13",g.edition_jacket_image "paperback_jacket_image",
				i.author_info_biography, i.author_info_interview, i.author_info_image, i.author_info_url,
                (select count(c.book_number) as "author_bookcount" from book_author_mapping c where c.author_number = ?) + (select count(e.ezine_preview_number) as "author_bookcount" from ezine_previews e where e.ezine_preview_bb_author_link = ?) as "authorbookcount"
                
		    from books a
            inner join book_author_mapping e ON a.book_number = e.book_number
            inner join authors d ON e.author_number = d.author_number
            inner join author_info i ON d.author_number = i.author_number
            left outer join editions f ON a.book_number = f.book_number and f.edition_paperback_flag = 0
            left outer join editions g ON a.book_number = g.book_number and g.edition_paperback_flag = 1
                        
            where e.author_number = ?
            and a.book_number IN (select distinct b.book_number from categories a, category_book_mapping b where a.category_number = b.category_number and a.category_active_flag = 1)
			
            order by sort_book_title
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 3470
Parameter #2(CF_SQL_INTEGER) = 3470
Parameter #3(CF_SQL_INTEGER) = 3470

get_author_by_author_id (Datasource=bookbrowse_com_new, Time=1ms, Records=1) in /root/website/queries/qry_get_books_by_author_id.cfm @ 06:44:39.039
select	d.author_number, d.author_first_name, d.author_middle_initial, d.author_last_name, d.author_pronunciation,
                CASE	WHEN datalength(d.author_middle_initial) > 0 
                        THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
                        ELSE d.author_first_name + ' ' + d.author_last_name
                        END AS "author_full_name",
				i.author_info_number, i.author_number, i.author_info_image, i.author_info_entry_dt,
                i.author_info_url, i.author_info_interview_summary, i.author_info_interview, i.author_info_biography, i.author_info_copyright_info
                		
        from 	authors d, author_info i
		
        where 	d.author_number = ?
        and 	d.author_number = i.author_number
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 3470

get_member_account_types (Datasource=bookbrowse_com_new, Time=2ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 06:44:39.039
select member_account_type_number, member_account_type_name, member_account_type_charge, member_account_type_charge_frequency, member_account_type_postscript, member_account_type_months, member_account_type_stripe_lookup_key
from member_account_types
where member_account_type_number = (select top 1 member_account_type_number
									from member_account_types
									where member_account_type_months = 12
									and member_account_type_public = 1
									order by member_account_type_charge ASC)
									
or member_account_type_number =		(select top 1 member_account_type_number
									from member_account_types
									where member_account_type_months = 3
									and member_account_type_public = 1
									order by member_account_type_charge ASC)
									
order by member_account_type_sort_order ASC
get_arcs_for_ad (Datasource=bookbrowse_com_new, Time=18ms, Records=0) in /root/website/queries/qry_get_arcs_for_ad.cfm @ 06:44:39.039
SELECT 	top 10 a.arc_number,arc_promo_text,
		b.ezine_preview_number, b.ezine_preview_title, b.ezine_preview_subtitle, b.ezine_preview_jacket_image, b.ezine_preview_author, b.ezine_preview_publish_dt, 
		(select (CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,0))) AS numeric(12,0)))+
				(CASE WHEN right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) > 25 AND right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) < 50 THEN 0.5
				 WHEN right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) > 50 AND right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) < 75 THEN -0.5
				 ELSE 0
				 END)
 			from arc_allocator	where arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) AS arcrating

FROM arcs a
INNER JOIN ezine_previews b ON b.ezine_preview_number = a.ezine_preview_number

WHERE arc_closed_flag = 1
AND arc_obc_flag = 0
AND getdate() >= arc_on_ad_dt
AND (select count(*) from arc_allocator d where d.arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) > 1
and getdate() <= dateadd(day,1,a.arc_off_ad_dt)

ORDER BY NEWID()
get_arcs_for_ad (Datasource=bookbrowse_com_new, Time=20ms, Records=3) in /root/website/queries/qry_get_arcs_for_ad.cfm @ 06:44:39.039
SELECT 	top 3 a.arc_number,arc_promo_text,
			b.ezine_preview_number, b.ezine_preview_title, b.ezine_preview_subtitle, b.ezine_preview_jacket_image, b.ezine_preview_author, b.ezine_preview_publish_dt, 
			(select (CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,0))) AS numeric(12,0)))+
					(CASE WHEN right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) > 25 AND right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) < 50 THEN 0.5
					 WHEN right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) > 50 AND right(CAST(AVG(CAST(arc_allocator_review_rating AS numeric(12,2))) AS numeric(12,2)),2) < 75 THEN -0.5
					 ELSE 0
					 END)
				from arc_allocator	where arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) AS arcrating

	FROM arcs a
	INNER JOIN ezine_previews b ON b.ezine_preview_number = a.ezine_preview_number

	WHERE arc_closed_flag = 1
	AND arc_obc_flag = 0
	AND getdate() >= arc_on_ad_dt
	AND (select count(*) from arc_allocator d where d.arc_number = a.arc_number and arc_allocator_review_approved_flag = 1) > 1

	ORDER BY a.arc_off_ad_dt DESC
get_ads (Datasource=bookbrowse_com_new, Time=16ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT		a.adid,	adweight
	FROM		adsystem a
	INNER JOIN 	ad_category_mapping b ON b.adid = a.adid
	WHERE		a.section = ?
	AND			a.active  = 1
	AND 		a.start_date <= GETDATE()
	
	AND (a.viewby LIKE '%n%' OR a.viewby = 'all')
            

	AND     (b.category_number IN (	SELECT	category_number
									FROM	category_book_mapping
									WHERE	book_number = ?)
      		OR 	b.category_number = ?)
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = adzone6
Parameter #2(CF_SQL_VARCHAR) = 0
Parameter #3(CF_SQL_VARCHAR) = 0

get_ads (Datasource=bookbrowse_com_new, Time=3ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT	a.adid,	adweight
        FROM	adsystem a
        WHERE	a.section = ? 
        AND 	a.active  = 1 
        AND		a.start_date <= GETDATE()	
        
        AND (a.viewby LIKE '%n%' OR a.viewby = 'all')
        AND (select count(*) from ad_category_mapping where datalength(category_number) >= 1 and adid = a.adid) = 0
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = adzone6

get_type (Datasource=bookbrowse_com_new, Time=11ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT	a.start_date, a.adid, a.end_date, a.camp_views, a.image_name, a.alt_text, a.views, a.code, a.adsize
        FROM	adsystem a
        WHERE	a.adid = ?
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1112

get_quotes (Datasource=bookbrowse_com_new, Time=8ms, Records=1) in /root/website/site/blocks/dsp_book_giveaway.cfm @ 06:44:39.039
select top 1 ezine_number, ezine_quote, ezine_quote_title
	    from ezines
	    where len(ezine_quote_title) > 1
	    order by newid()
get_free_newsletters (Datasource=bookbrowse_com_new, Time=0ms, Records=4, Cached Query) in /root/website/queries/qry_get_free_newsletters.cfm @ 06:44:39.039
SELECT 	*
    FROM 	free_newsletters
get_ads (Datasource=bookbrowse_com_new, Time=2ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT		a.adid,	adweight
	FROM		adsystem a
	INNER JOIN 	ad_category_mapping b ON b.adid = a.adid
	WHERE		a.section = ?
	AND			a.active  = 1
	AND 		a.start_date <= GETDATE()
		 	AND a.adid NOT IN (?) 
	AND (a.viewby LIKE '%n%' OR a.viewby = 'all')
            

	AND     (b.category_number IN (	SELECT	category_number
									FROM	category_book_mapping
									WHERE	book_number = ?)
      		OR 	b.category_number = ?)
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = showcase_track
Parameter #2(CF_SQL_INTEGER) = 1112
Parameter #3(CF_SQL_VARCHAR) = 0
Parameter #4(CF_SQL_VARCHAR) = 0

get_ads (Datasource=bookbrowse_com_new, Time=13ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT	a.adid,	adweight
        FROM	adsystem a
        WHERE	a.section = ? 
        AND 	a.active  = 1 
        AND		a.start_date <= GETDATE()	
        		AND a.adid NOT IN (?) 
        AND (a.viewby LIKE '%n%' OR a.viewby = 'all')
        AND (select count(*) from ad_category_mapping where datalength(category_number) >= 1 and adid = a.adid) = 0
Query Parameter Value(s) -
Parameter #1(CF_SQL_VARCHAR) = showcase_track
Parameter #2(CF_SQL_INTEGER) = 1112

get_type (Datasource=bookbrowse_com_new, Time=16ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 06:44:39.039
SELECT	a.start_date, a.adid, a.end_date, a.camp_views, a.image_name, a.alt_text, a.views, a.code, a.adsize
        FROM	adsystem a
        WHERE	a.adid = ?
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 594


Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=/root/website/author_interviews/full/index.cfm
CONTENT_LENGTH=
CONTENT_TYPE=
CONTEXT_PATH=
GATEWAY_INTERFACE=
HTTPS=
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=*/*
HTTP_ACCEPT_ENCODING=gzip, br, zstd, deflate
HTTP_ACCEPT_LANGUAGE=
HTTP_CONNECTION=upgrade
HTTP_COOKIE=CFTOKEN=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE; CFID=4090696; CFGLOBALS=urltoken%3DCFID%23%3D4090696%26CFTOKEN%23%3D3a912aa8f1b64c60%2D134444E5%2D9852%2DC383%2DBDD136651446B0EE%23lastvisit%3D%7Bts%20%272026%2D06%2D01%2006%3A44%3A39%27%7D%23hitcount%3D98%23timecreated%3D%7Bts%20%272026%2D06%2D01%2006%3A44%3A28%27%7D%23cftoken%3D3a912aa8f1b64c60%2D134444E5%2D9852%2DC383%2DBDD136651446B0EE%23cfid%3D4090696%23; FREEACCESSCOUNT=1; CFCLIENT_BOOKBROWSE=order%3Dp%23member%5Fnumber%3D0%23member%5Factive%5Fflag%3D0%23member%5Flogged%5Fin%5Fflag%3D0%23library%5Fuser%5Fflag%3D0%23view%3Dbooks%23
HTTP_HOST=dev.bookbrowse.com
HTTP_REFERER=
HTTP_URL=
HTTP_USER_AGENT=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
LOCAL_ADDR=127.0.0.1
PATH_INFO=/author_number/2047/author/kim-barker
PATH_TRANSLATED=/root/website/author_interviews/full/index.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=127.0.0.1
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/author_interviews/full/index.cfm
SERVER_NAME=dev.bookbrowse.com
SERVER_PORT=8500
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=
WEB_SERVER_API=
Client Variables:
cfid=4090696
cftoken=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE
hitcount=100
lastvisit={ts '2026-06-01 06:44:39'}
library_user_flag=0
member_active_flag=0
member_logged_in_flag=0
member_number=0
order=p
timecreated={ts '2026-06-01 06:44:28'}
urltoken=CFID=4090696&CFTOKEN=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE
view=books
Cookie Variables:
CFCLIENT_BOOKBROWSE=order=p#member_number=0#member_active_flag=0#member_logged_in_flag=0#library_user_flag=0#view=books#
CFGLOBALS=urltoken=CFID#=4090696&CFTOKEN#=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE#lastvisit={ts '2026-06-01 06:44:39'}#hitcount=98#timecreated={ts '2026-06-01 06:44:28'}#cftoken=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE#cfid=4090696#
CFID=4090696
CFTOKEN=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE
FREEACCESSCOUNT=1
Session Variables:
cfid=4090696
cftoken=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE
sessionid=BOOKBROWSE_4090696_3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE
urltoken=CFID=4090696&CFTOKEN=3a912aa8f1b64c60-134444E5-9852-C383-BDD136651446B0EE
URL Parameters:
author=kim-barker
author_number=2047
Debug Rendering Time: 17 ms