Summary and Reviews of Real Americans by Rachel Khong

Real Americans by Rachel Khong

Real Americans

A Novel

by Rachel Khong
  • BookBrowse Review:
  • Critics' Consensus (14):
  • Readers' Rating (30):
  • First Published:
  • Apr 30, 2024, 416 pages
  • Paperback:
  • Mar 2025, 416 pages
  • Rate this book

About This Book

Book Summary

From the award-winning author of Goodbye, Vitamin: How far would you go to shape your own destiny? An exhilarating novel of American identity that spans three generations in one family and asks: What makes us who we are? And how inevitable are our futures?

Real Americans begins on the precipice of Y2K in New York City, when twenty-two-year-old Lily Chen, an unpaid intern at a slick media company, meets Matthew. Matthew is everything Lily is not: easygoing and effortlessly attractive, a native East Coaster, and, most notably, heir to a vast pharmaceutical empire. Lily couldn't be more different: flat-broke, raised in Tampa, the only child of scientists who fled Mao's Cultural Revolution. Despite all this, Lily and Matthew fall in love.

In 2021, fifteen-year-old Nick Chen has never felt like he belonged on the isolated Washington island where he lives with his single mother, Lily. He can't shake the sense she's hiding something. When Nick sets out to find his biological father, the journey threatens to raise more questions than it provides answers.

In immersive, moving prose, Rachel Khong weaves a profound tale of class and striving, race and visibility, and family and inheritance—a story of trust, forgiveness, and finally coming home.

Exuberant and explosive, Real Americans is a social novel par excellence that asks: Are we destined, or made? And if we are made, who gets to do the making? Can our genetic past be overcome?

B E I J I N G , 1 9 6 6

She isn't afraid, but he is. They stand, in the darkness, before a glass case of old things. A Ming dynasty inkstone. A chrysanthemum carved from horn. A Song painting stamped with ruby-red collector's seals. And on a silk pillow, so slight it could be missed: an ancient lotus seed with a legend behind it.

The story goes like this: One night, long ago, a dragon emerged from the sky and dropped this seed into the emperor's open hand. His advisors huddled near to examine it. What fortune! they remarked. This seed would grant the emperor his greatest wish. Unfortunately, he died that night, while contemplating his options. He might have asked for immortality.

She takes a hammer from her knapsack. With all her strength, she strikes the glass. It makes a beautifully clear sound as it shatters. Quickly, the two get to work, securing the relics. It is an attempt to spare them from the Red Guards' destruction—an act of protest, small, against a movement she's no ...

Please be aware that this discussion guide will contain spoilers!
  1. The prologue of the novel describes a brief scene with a character we later learn is May and a fabled lotus seed, which May swallows. In what ways did this action symbolically (or, perhaps, biologically) affect the course of action that would follow in May's life and, by extension, Lily's and Nick's? Do you think that if she hadn't swallowed the seed, the succeeding events would have transpired?
  2. Within the first few chapters, it's clear that Lily was largely raised as an American without much knowledge of Chinese culture. What are some character traits that point to this? Why do you think immigrants assimilate to white American culture and mannerisms and raise their kids this way? In what ways does Lily yearn for a greater, richer ...
Please be aware that this discussion may contain spoilers!

See what our members are saying about this book in our Community Forum.

Overall, what did you think of Real Americans? (no spoilers, please!)
In the beginning, I found Lily's insecurity frustrating. Her continual insistence that she "was nothing special" and "wouldn't ever be" was annoying. The visit to her mother's laboratory seemed to cement the idea that she would never amount to anything significant. When her narrative abruptly end...
-Linda_O_donnell


Structure of the novel, Real Americans
A post was merged into an existing topic: /t/overall-what-did-you-think-of-real-americans-no-spoilers-please/1616/26 Overall, what did you think of Real Americans? (no spoilers, please!)
-kim.kovacs


In the prologue, May swallows an ancient lotus seed. In what ways did this action affect the course of May's life and, by extension, Lily's and Nick's? Do you think that if she hadn't swallowed the seed, the succeeding events would have transpired?
The lotus seed was symbolic and based on superstition. I do not believe for one second that event resulted in Lily & Nick experiencing the similar slowing of time. It was more likely a genetic synapse inherited by maternal DNA.
-Vivian_H


Another theme that appears is that of luck. How does May's concept of luck contradict, or even explain, her belief in biology and the concept of manufacturing a human being to eliminate genetic diseases and, essentially, create a perfect human specimen?
In Chinese culture luck is a recurring historical theme depending on the geographical/ dialect groups. There are lucky numbers. Example: Mandarin the words for death and the number 4 sound similar. As such, many buildings have no 4th floor. Burning fake money at a temple for an ancestor- because ...
-Vivian_H


Why do you think May was disappointed in Lily's choice to quit her job at the magazine and financially rely on Matthew in the early years of their relationship?
Many parents have the same priorities for their children. Get an excellent education. Get a job that is important and makes lots of money. Mai no doubt also remembers the patriarchy of China before the Cultural Revolution. Girl babies were just another mouth to feed.
-Vivian_H


Why do you think Khong decided to write in the perspectives of these three characters? Did you notice any shifts in how they're portrayed among the different segments (e.g., how is May characterized from Lily's perspective versus how May tells her story)?
I so agree Kathleen. It is a very different story when told by the elders and told by the children. I find that often within my family frame, especially between my sister and myself. Seeing more than one perspective, often leads to better understanding between the two individuals.
-Carol_N


Wondering About Matthew
I agree, the author never allowed the reader to truly know what was going on in Mathew's mind. I believe he was stuck in his family's history and never able to break free. He was a complex individual and I really would like to have gotten more into his thoughts and what made him always step back ...
-Carol_N


Toward the end of her segment, Lily promises to give Nick what she didn't receive growing up from her parents. Based on Nick's characteristics, in what ways do you think she achieved that? What are some traits that Nick has that point to Lily's influence?
Lily was not close to her mother, only her father. She, despite her keeping him away from her family, she gave him a sense of values, and taught him to be loving and kind. He demonstrated those traits by showing his care of the grandmother. Matthew wanted to give him love but really didn't know h...
-Carol_N


Do you think May and Otto's attempts at manipulating genetics were successful? In what ways did their attempts to prioritize Matthew's DNA succeed? What do you think Khong is trying to say here about how a person grows and develops traits?
I agree wholeheartedly. Even though it erased the Asian heritage, it was not successful, it continued to destroy all of their ives.
-Carol_N


Nick recruits Matthew in a scheme to thwart Levi's plans for the startup company. What has Nick learned from his own conception and experiences with Big Pharma that influenced this choice?
Having experienced the affects of DNA experiments in his life, with his family members, he realizes that there is a line that should not be crossed. Nick truly believes that Levi can't be trusted to not cross that line and his one choice to see that it doesn't happen on his watch. That choice was...
-Carol_N


Lily and Nick each experience presuppositions and microaggressions about their identities based on how they look. In what ways do these presuppositions clash with how they perceive themselves? What do you think Khong is saying regarding "Americanness"?
Well expressed Laura! I agree wholeheartedly and could not have said it better.
-Carol_N


Lily was raised as an American without much knowledge of Chinese culture. In what ways does she yearn for a greater understanding of her heritage? Do you come from a specific cultural heritage, and if so, how much were educated about it as a child?
I am not sure Lily was yearning for an understanding of her Chinese heritage, I truly feel she was longing for a mother's love and approval instead. As for my cultural heritage, it is Sweden and Denmark based. My grandparents continued to follow many of their customs especially at the holiday sea...
-Carol_N


What audience would you recommend Real Americans to? Is there another book or author you’d recommend that you feel has a similar theme or style?
Having just read both of these books you mentioned, I totally agree. Both of these amazing reads deals with women and their reproductive choices. And sadly the most important fact it was without neither their knowledge and consent. Both events are horrific, and continues to made me not only sad b...
-Carol_N


What differences did you see between Nick's and Sam's upbringings? In what ways does Sam represent the opposite of what Lily and Matthew wanted for Nick? Do you believe Nick sees Sam as the person he would have been if his parents had stayed together?
Matthew had great difficulty connecting to his boys. He always kept space between all of his family members.Nick who often did feel alone, had plenty of his mother's love while Sam in spite of his wealth always felt alone. I really don't know what the outcome may have been if the circumstances we...
-Carol_N


A running occurrence in this book involves secrets and lies that, although well intentioned, cause fault lines between family members. Where in the book do you see that trying to manufacture a perfect life leads to deep rifts between parent and child?
Many lies among several characters. However I believe the two most unforgivable lies were May's interfering with Lily's DNA and Lily not sharing with Nick his father's name. She robbed him of knowing a good man. As for May, I question her right to change her daughter's DNA.
-Carol_N


How does the title of the book reflect on real Americans?
Melissa, I compliment you on your reply. I could not have said it better. Being a real American is individualistic and does mean where you were born!
-Carol_N


In what ways did growing up in the era of Maoism mobilize May to seek refuge in America? What are the social and political differences between these two specific cultures that might have influenced her choices?
May soon realized if she was to pursue her science work she need leave China as soon as she was able. She could not speak her truth if she remained there. Did she make the right choice, yes leaving provided her with more freedom., however, it also gave her freedom to change her daughter's life. T...
-Carol_N


"To rebel is unjustified. Purge bourgeois thinking, destroy the 4 olds: ideas, custom, havits and culture. Work hard . Work harder." This is might be a reflection of America today. How does this story give us a warning to rise above the noise?
Well said! I totally agree anyone who criticizes the current government is seen an the enemy. We need to stand strong and keep involved.
-Carol_N


When Lily visits Beijing, she realizes that she feels foreign even though everyone around her looks like her. Do you feel it’s common for many American-born ethnic minorities to face this kind of identity crisis? How does this mirror Nick's perspective?
As I am a native born American of Danish decent, I have no reference. I do have some American born minorities in my life and this question and book will make for a very interesting conservation the next time we are together.
-Carol_N


Jenny, Matthew and Lily's maid, instantly builds rapport with May when they meet after Nick's birth. Do you think Lily is jealous of their chemistry, and if so, why?
I agree wholeheartedly. Jenny and Mei had the relationship that Lily had always wanted from her mother. Also add the fact that the relationship came easy to her mother and I think she felt her mother had never tried with her.
-Carol_N


By the time he reaches college, Nick has developed a relationship with his father, but later it's clear he breaks off this relationship. Why do you think this occurred, and what were the factors that ultimately made Nick go no-contact with his father?
Nick felt disappointed that his father didn't show up for him. By not meeting Nick at the college, Matthew unknowingly brought all the Nick's abandonment issues with his father to the forefront. Lily constantly told Nick his father wanted nothing to do with him. Although his relationship with his...
-Arlene_Iannazzi


How do you think money and socio-economic status effects the characters and their choices (of lack of choices) throughout the novel?
Lily and Matthew's relationship focuses a lot on money and socio-economic status. Lily is constantly comparing her lifestyle to those around her (her co-workers at the Christmas party, the two friends from the Pilates class, Matthew and his family). How do you think money and socio-economic statu...
-Alisa_C


The lotus flower appears as a symbol of the consistency of time. How does this connect with the three main narrators' desire to manipulate time? In what ways do you think May admires the lotus flower for its inherent characteristics related to time?
The concept of time stopping or slowing down for the characters seemed out of place to me until we learned of May's wish when swallowing the lotus seed. It was an interesting tidbit that May, Lily, and Nick all felt the time slow downs. It connected the genetic theme of the story to the Chinese b...
-Laura_D


Nick's relationship with father
I was disappointed that Nick didn't push his mother about his father's identity. I do think they formed a relationship, but it was strained. I agree with NanK, that maybe their relationship did develop further as the ending suggests.
-Melissa_C


In the final chapter, May reflects on her obsession with time. How do Chinese and American cultures differ in their ideologies related to time and productivity? In what ways does life in America perpetuate a future-focused worldview and lifestyle?
Time is money in the US so everything is about future production!! We are so linear in our thinking yet Chinese concept seems to be two fold, the now and the future carefully blended to take advantage of trust and success, you don't want to waste people's time yet you want to be productive now an...
-Jo_S


In what ways do you think May regrets obsessing so much over maximizing her time? What kind of life do you believe May would have had without these anxieties over time?
Well for one she chose safety and a chance at a successful career over true love, and a closer relationship with her daughter. These sacrifices most likely led her to hyper focus on having a brilliant career and the perfect life for her daughter so the sacrifices would be worth it. There was no t...
-Jo_S


What are you reading this week? (3/27/2025)
I am reading Real Americans by Rachel Khong. I look forward to discussing her writing style and character development.
-Yvonne


About the Real Americans by Rachel Khong Discussion category
Please join BookBrowse in our book club discussion of Real Americans by Rachel Khong
-system


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!

Reviews

BookBrowse Review

BookBrowse

Over the course of the book, we meet May, her daughter Lily, and her grandson Nick. May, who flees China's Cultural Revolution and the persecution of scientists and academics, is driven by a passion for understanding gene expression. As the title suggests, the book explores what it means to be a "real American." Each of the three main characters feels excluded in some way: one doesn't look the part; one looks the part but feels different from his peers; one's past life and language is just too different to be shared in current surroundings. Yet the individualism of all their behaviors seems undeniably American in contrast to family-oriented Confucian values, or the greater-whole social principles of Chinese Communism. Throughout the book lingers the question of one's future: fate, destiny, free will. If we really knew and understood our past, would we make the same decisions? How much of our lives can we change; are they destined, free will, or luck?..continued

Full Review Members Only (768 words)

(Reviewed by Pei Chen).

Media Reviews

Los Angeles Times
A…masterful, shape-shifting novel about multiracial identity….What makes Americans 'real'? Is it our competitive drive? Our craving for wealth and status? Our insatiable quest for scientific advancement? Or is it—inevitably—the color of our skin and eyes?… [Rachel] Khong manages these twisting threads with masterful deftness…. [An] irresistible puzzle of a novel.

Minneapolis Star Tribune
Real Americans is both a novel of ideas and of beautiful sentences. Khong's prose is a pleasure to read… even as the questions she raises are chilling, indeed.

Oprah Daily
Unforgettable…Vibrant, tender and one to pass onto a friend.

Real Simple
This multigenerational stunner asks a thought-provoking question: Do we have any control over our destiny, or do some people just get lucky?

San Francisco Chronicle
Riveting in its unexpected turns, Real Americans is a novel about past mistakes and their echoes — and a reminder that those histories need not be binding.

The New York Times
Remarkable… Folded into [Real Americans] are doomed love stories, fancy parties, a subplot about epigenetics, Chinese people who look white and yummy treats… The book also poses a dizzying array of questions: What does it mean to be American, and who gets to say who is one?

Literary Hub
By encompassing a family as a whole, [Real Americans] asks big questions about our lineage and futures, how much is really up to us, whether the fact of our pasts guarantee our fate, or whether we have agency over the lives we live.

People
It's a tale as old as time: Poor girl meets rich boy, they fall in love, and they live happily ever after. Well, not quite… A profound read.

Time
[Rachel] Khong layers the lives of her characters to challenge how well we can really know one another… [Khong]…captures the feeling of floating in the in-between, not firmly tethered to one pole of identity or another but instead looking for a way to feel secure in your own space… And that title—Real Americans—evokes more questions than any single book could answer. What is American, and what is real?

Washington Post
If you liked Tomorrow and Tomorrow and Tomorrow by Gabrielle Zevin, read Real Americans by Rachel Khong...[Rachel Khong] returns, painting on a larger canvas, in this story about three generations of a Chinese American family...Different voices follow, in a multilayered look at family and identity.

Booklist
[Real Americans is a] plot-rich, spiraling, multigenerational epic [that] possesses the same heartrending humanity and deceptively subtle portrayal of characters' unseen depths [as Rachel Khong's debut]—so impossible to relate, so essential to everything. As in life, the love is in the details.

Kirkus Review (starred review)
Every character is dear, and every one of them makes big mistakes, causing a ripple effect of anger and estrangement that we watch with dismay, and hope...Bold, thoughtful, and delicate at once, addressing life's biggest questions through artfully crafted scenes and characters.

Publishers Weekly
Khong returns (after Goodbye, Vitamin) with an impressive family drama...Khong is both a perceptive prose stylist and an accomplished storyteller, and she shines brightest when portraying differing cultural styles of parental love...Khong reaches new heights with this fully-fledged outing.

Author Blurb Brit Bennett, author of The Vanishing Half

Khong masterfully explores a family splintered by science, struggling to redefine their own lives after uncovering harrowing secrets. Real Americans is a mesmerizing multigenerational novel about privilege, identity and the illusions of the American dream.

Author Blurb Ha Jin, author of Waiting
Real Americans is a grand novel that explores the American psyche, dramatizing the fundamental American belief in the ability to change the world and improve humanity. Rachel Khong shows infinite and colorful perceptions of the world, which are often leavened with wisdom. Besides being a page turner, this book is also an eye-opener, imaginative and exhilarating.

Reader Reviews

Cathryn_Conroy

A Thoughtful, Ingeniously Plotted Novel About the Choices We Make with the Life We've Been Given
This is a multigenerational saga about a Chinese-American family that will take you from the 1950s rice paddies in the southern basin of China's Yangtze River to Mao's 1960s Cultural Revolution to 9/11 in New York City to the hot-shot San Francisco ...   Read More
Gloria_Moorekoch

Must Read!
I vaguely remember all the great reviews and awards Rachel Khong received back in 2017 for her first published novel, "Goodbye, Vitamin" and thinking I should add it to my TBR list, which somehow never actually happened (which I totally regret-and it...   Read More
Maureen_Connolly

Compelling Saga
This is the story of three generations of the Chen Family. The first part is told by Lily who was born in the US on Long Island, NY. Lily starts out as an unpaid intern in 1999 and meets Matthew who wines and dines her. Matthew is an heir to a huge ...   Read More
Labmom55

Gets better as it goes along
I was not a fan of Goodbye, Vitamin, but I appreciated this book much more. It’s a multi-part story that covers three generations of a Chinese American family - mother, son and grandmother. It starts off weak but gets more interesting with each ...   Read More

Write your own review!

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!

Beyond the Book



Chinese Science During the Cultural Revolution (1966-1976)

May, the matriarch of Rachel Khong's Real Americans, is born into a poor rural Chinese family in the 1950s. Her fate is foretold by her mother's life: wake before dawn to cook breakfast, clean up after the men in the family, head to the rice paddies and toil until the time to head home to cook supper, rinse and repeat. It is backbreaking. Luckily for May, she possesses an academic gift and an intellectual curiosity that missed her elder brothers. She excels at the National Exam, testing into esteemed Peking University to study biology. Her tuition is sponsored by the state and she escapes rural poverty to become a glamorous urban student. "You look like the girl from the [propaganda] poster," May's young cousin says admiringly on her return...

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

Read-Alikes Full readalike results are for members only

If you liked Real Americans, try these:

  • Ghost Girl, Banana jacket

    Ghost Girl, Banana

    by Wiz Wharton

    Published 2025

    About this book

    Set between the last years of the "Chinese Windrush" in 1966 and Hong Kong's Handover to China in 1997, a mysterious inheritance sees a young woman from London uncovering buried secrets in her late mother's homeland in this captivating, wry debut about family, identity, and the price of belonging.

  • Rental House jacket

    Rental House

    by Weike Wang

    Published 2024

    About this book

    More by this author

    From the award-winning author of Chemistry, a sharp-witted, insightful novel about a marriage as seen through the lens of two family vacations.

  • Age 16 jacket

    Age 16

    by Rosena Fung

    Published 2024

    About this book

    A powerful coming-of-age graphic novel about how mothers and daughters pass down—and rebel against—standards of size, gender, race, beauty, and worth.

We have 6 read-alikes for Real Americans, but non-members are limited to three results. Join free to see the complete list of recommendations.
More books by Rachel Khong
Search read-alikes
How we choose read-alikes
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 single biggest problem in communication is the illusion that it has taken place

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..


Debugging Information
ColdFusion Server Developer 2021,0,13,330286
Template /reviews/index.cfm
Time Stamp 31-May-26 07:51 PM
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
1780257091021 ms 1.78025709102E+012 ms 1 /root/website/app_server.cfm
1559 ms 1559 ms 1 /root/website/reviews/index.cfm
369 ms 369 ms 1 /root/website/reviews/dsp_main.cfm
354 ms 354 ms 1 /root/website/queries/qry_get_book_by_id.cfm
342 ms 342 ms 1 /root/website/queries/qry_get_discussion_by_id.cfm
120 ms 120 ms 1 /root/website/queries/qry_get_ezine_by_book_id.cfm
109 ms 109 ms 1 /root/website/app_globals.cfm
102 ms 20 ms 5 /root/website/adsystem/adsystem_mod.cfm
90 ms 90 ms 1 /root/website/site/blocks/layout/dsp_right_column.cfm
59 ms 59 ms 1 /root/website/queries/qry_get_free_flag_by_book_id.cfm
50 ms 13 ms 4 /root/website/site/blocks/membership_advantages.cfm
47 ms 12 ms 4 /root/website/queries/qry_get_member_account_types.cfm
47 ms 47 ms 1 /root/website/site/blocks/dsp_border_first_impressions.cfm
46 ms 46 ms 1 /root/website/queries/qry_get_arcs_for_ad.cfm
35 ms 35 ms 1 /root/website/site/blocks/dsp_top_book_block.cfm
34 ms 34 ms 1 /root/website/adzones/AdZone6.cfm
33 ms 33 ms 1 /root/website/queries/qry_get_active_obc.cfm
32 ms 32 ms 1 /root/website/queries/qry_get_reader_reviews_by_book_id.cfm
28 ms 28 ms 1 /root/website/adzones/AdZone2.cfm
20 ms 20 ms 1 /root/website/site/blocks/layout/dsp_footer.cfm
18 ms 18 ms 1 /root/website/adzones/showcase_track.cfm
18 ms 18 ms 1 /root/website/queries/qry_get_liked_by_book_id.cfm
17 ms 3 ms 6 /root/website/actions/act_spider_tracker.cfm
15 ms 15 ms 1 /root/website/adzones/AdZone11.cfm
15 ms 15 ms 1 /root/website/queries/qry_get_current_competition.cfm
14 ms 14 ms 1 /root/website/queries/qry_get_book_awards_by_book_id.cfm
13 ms 13 ms 1 /root/website/queries/qry_get_current_wordplay.cfm
12 ms 12 ms 1 /root/website/actions/adstatus.cfm
9 ms 9 ms 1 /root/website/act_check_login.cfm
9 ms 9 ms 1 /root/website/adzones/AdZone3.cfm
8 ms 8 ms 1 /root/website/queries/qry_get_categories_by_book_id.cfm
8 ms 8 ms 1 /root/website/queries/qry_get_member_info.cfm
6 ms 6 ms 1 /root/website/site/blocks/dsp_book_giveaway.cfm
2 ms 2 ms 1 /root/website/site/blocks/layout/dsp_header.cfm
1 ms 1 ms 1 /root/website/queries/qry_get_previous_arcs_for_ad.cfm
1 ms 1 ms 1 /root/website/site/blocks/layout/head.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_current_ezine.cfm
0 ms 0 ms 1 /root/website/queries/qry_set_book_hit.cfm
0 ms 0 ms 1 /root/website/site/blocks/act_book_view_tracking.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_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_menu.cfm
0 ms 0 ms 1 /root/website/site/blocks/layout/main_search.cfm
2 ms  STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
1561 ms  TOTAL EXECUTION TIME
red = over 250 ms average execution time


Exceptions

19:51:32.032 - Expression Exception - in /root/website/site/blocks/dsp_top_book_block.cfm : line 237
	    Variable BOOK_NUMBER is undefined.
	    


SQL Queries

spidercheck (Datasource=bookbrowse_com_new, Time=16ms, Records=1) in /root/website/actions/act_spider_tracker.cfm @ 19:51:31.031
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=8ms, Records=0) in /root/website/queries/qry_get_member_info.cfm @ 19:51:31.031
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=11ms, Records=2) in /root/website/actions/adstatus.cfm @ 19:51:31.031
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 @ 19:51:31.031
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=13ms, Records=1) in /root/website/queries/qry_get_current_wordplay.cfm @ 19:51:31.031
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=13ms, Records=0) in /root/website/queries/qry_get_current_competition.cfm @ 19:51:31.031
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=1ms, Records=0) in /root/website/queries/qry_get_current_competition.cfm @ 19:51:31.031
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 @ 19:51:31.031
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=4ms, Records=0) in /root/website/queries/qry_get_active_obc.cfm @ 19:51:31.031
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=11ms, Records=1) in /root/website/queries/qry_get_active_obc.cfm @ 19:51:31.031
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=16ms, Records=4) in /root/website/queries/qry_get_active_obc.cfm @ 19:51:31.031
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_book_by_id (Datasource=bookbrowse_com_new, Time=26ms, Records=1) in /root/website/queries/qry_get_book_by_id.cfm @ 19:51:31.031
SELECT		a.book_number, a.book_title, a.book_sub_title, a.book_url, a.book_entry_dt, a.book_short_summary, a.book_excerpt, a.book_jacket_info, a.book_reading_guide, a.book_copyright_info, a.book_notes,
            	b.author_number, b.author_first_name, b.author_last_name, b.author_middle_initial,
            	f.edition_publish_dt AS "hardcover_publish_dt", f.edition_number_of_pages AS "hardcover_number_of_pages", f.edition_isbn AS "hardcover_isbn", f.edition_isbn13 "hardcover_isbn13", f.edition_jacket_image as "hardcover_jacket_image", f.edition_publisher as "hardcover_publisher",
            	g.edition_publish_dt AS "paperback_publish_dt", g.edition_number_of_pages AS "paperback_number_of_pages", g.edition_isbn AS "paperback_isbn", g.edition_isbn13 "paperback_isbn13", g.edition_jacket_image as "paperback_jacket_image", g.edition_publisher as "paperback_publisher",
            	i.author_info_interview, i.author_info_biography,i.author_info_image,
            	CASE WHEN datalength(author_middle_initial) = 1 THEN author_first_name + ' ' + author_middle_initial + ' ' + author_last_name
            		 ELSE author_first_name + ' ' + author_last_name
            		 END "author_name",
            	CASE WHEN 
					(select count(*) from editions where book_number = 4364) = 1
					AND
					(select count(*) from editions where book_number = 4364 and edition_paperback_flag = 1) = 1
				THEN 1
				ELSE 0
				END AS "po_flag",
				(select count(*) from book_author_mapping m where m.author_number = b.author_number)
				+
				(select count(*) from ezine_previews where ezine_preview_bb_author_link = b.author_number and ezine_preview_bb_link =0)
				 as 'author_bookcount',
            	(SELECT CAST(AVG(CAST(rating AS decimal(12,0))) AS decimal(12,1))
				FROM (
					SELECT reader_review_rating AS rating
					FROM reader_reviews
					WHERE book_number = a.book_number
					AND reader_review_rating > 0
					
					UNION ALL
					
					SELECT reading_list_book_rating AS rating
					FROM reading_lists
					WHERE book_number = CAST(a.book_number AS VARCHAR)
					AND reading_list_book_rating > 0
				) combined_ratings
			) "savrating",
			(SELECT COUNT(rating)
				FROM (
					SELECT reader_review_rating AS rating
					FROM reader_reviews
					WHERE book_number = a.book_number
					AND reader_review_rating > 0
					
					UNION ALL
					
					SELECT reading_list_book_rating AS rating
					FROM reading_lists
					WHERE book_number = CAST(a.book_number AS VARCHAR)
					AND reading_list_book_rating > 0
				) combined_ratings
			) as "savrating_count",
            	(select top 1 media_review_rating from media_reviews where book_number = a.book_number and media_review_type_number = 9) as "bbrating",
            	(select cast(AVG(CAST(media_review_rating AS numeric(12,2)))AS decimal(12,1)) from media_reviews where book_number = a.book_number and media_review_type_number <> 7 and media_review_rating > 0) "scritrating",
				(SELECT COUNT(media_review_rating) FROM media_reviews WHERE book_number = a.book_number AND media_review_type_number <> 7 AND media_review_rating > 0) as "scritrating_count",
            	(select top 1 gg.ezine_number from ezine_edition_mapping aa, editions bb, books cc, ezines gg            	
            	where aa.edition_number = bb.edition_number and bb.book_number = cc.book_number and aa.ezine_number = gg.ezine_number 
            	and cc.book_number = a.book_number and gg.ezine_bbsays_flag = 1 and gg.ezine_active_flag = 1) as "ezine_number",
				cgm.category_number,
				cgya.category_number AS "ya_flag"
				
,(select top 1 publisher_holding_company from publishers where (publisher_imprint like f.edition_publisher OR publisher_imprint like g.edition_publisher) AND publisher_holding_company LIKE 'Harper%') AS "publisher_holding_company"		
        
    FROM		books a 
    INNER JOIN	book_author_mapping c ON c.book_number = a.book_number
    INNER JOIN	authors b ON b.author_number = c.author_number  
    INNER JOIN	author_info i ON i.author_number = b.author_number
    
    LEFT JOIN	editions f ON f.book_number = a.book_number AND f.edition_paperback_flag = 0
    LEFT JOIN	editions g ON g.book_number = a.book_number AND g.edition_paperback_flag = 1
    LEFT JOIN	category_book_mapping cgm on cgm.book_number = a.book_number AND cgm.category_number = 48
    LEFT JOIN	category_book_mapping cgya on cgya.book_number = a.book_number AND cgya.category_number = 40
          
    WHERE 		a.book_number = ?
         
    ORDER BY	c.book_author_mapping_number
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_media_reviews_by_book_id (Datasource=bookbrowse_com_new, Time=325ms, Records=16) in /root/website/queries/qry_get_book_by_id.cfm @ 19:51:31.031
SELECT		a.media_review_number, 
				a.book_number, 
				a.media_review_type_number, 
				a.media_review_title, 
				a.media_review_rating, 
				a.media_review, 
				a.media_review_old,
	
				CASE WHEN a.media_review_type_number = 9 THEN 	(select top 1 (case when dbo.WordCount(c.ezine_review_2) > 0 then dbo.WordCount(c.ezine_review_2) + dbo.WordCount(c.ezine_extras) 
                                                                                    else dbo.WordCount(c.ezine_review) 
                                                                                    end)
                                                                from ezine_edition_mapping c
                                                                INNER JOIN editions d ON (d.edition_number = c.edition_number)
                                                                INNER JOIN ezines e ON e.ezine_number = c.ezine_number
                                                                WHERE d.book_number = ?
                                                                
                                                                ORDER BY e.ezine_number ASC)
	 			ELSE 0 
	 			END  "wordc",
				
				CASE WHEN a.media_review_type_number = 9 THEN 	(select top 1 reviewer_number
		 														 from ezine_edition_mapping c
		 														 INNER JOIN editions d ON (d.edition_number = c.edition_number)
																 INNER JOIN ezines e ON e.ezine_number = c.ezine_number
		 														 WHERE d.book_number = ?
		 														 AND e.ezine_bbsays_flag = 1
																 ORDER BY d.edition_publish_dt DESC)
	 			ELSE 1
				END "reviewer_number",
				
				CASE WHEN a.media_review_type_number = 9 THEN 	(select top 1 reviewer_first_name + ' ' + reviewer_last_name AS "reviewer_name"
		 														 from ezine_edition_mapping c
		 														 INNER JOIN editions d ON (d.edition_number = c.edition_number)
																 INNER JOIN ezines e ON e.ezine_number = c.ezine_number
																 INNER JOIN reviewers r on r.reviewer_number = c.reviewer_number
		 														 WHERE d.book_number = ?
		 														 AND e.ezine_bbsays_flag = 1
																 ORDER BY d.edition_publish_dt DESC)
	 			END "reviewer_name"
	
	FROM		media_reviews a, media_review_types b
	
	WHERE		a.book_number IN (select distinct c.book_number from categories a, category_book_mapping b, book_author_mapping c where a.category_number = b.category_number and a.category_active_flag = 1 and b.book_number = c.book_number)
	AND			a.book_number = ?
	AND			a.media_review_type_number = b.media_review_type_number
	
	ORDER BY	b.media_review_type_sort_order ASC, media_review_rating DESC, media_review_title ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817
Parameter #2(CF_SQL_INTEGER) = 4817
Parameter #3(CF_SQL_INTEGER) = 4817
Parameter #4(CF_SQL_INTEGER) = 4817

get_reader_reviews_by_book_id (Datasource=bookbrowse_com_new, Time=32ms, Records=4) in /root/website/queries/qry_get_reader_reviews_by_book_id.cfm @ 19:51:31.031
select 		a.reader_review_number, a.book_number, a.reader_review_approved_flag, a.reader_review_dt,
				COALESCE(NULLIF(LTRIM(RTRIM(m.discourse_username)), ''), NULLIF(LTRIM(RTRIM(a.reader_review_reviewer_name)), '')) AS reader_review_reviewer_name,
				a.reader_review_reviewer_email_address, a.reader_review_reviewer_from_locale, a.reader_review_recommended, a.reader_review_rating, a.reader_review_title, a.reader_review_description, ISNULL(a.like_count, 0) AS like_count,
    			b.book_title,
    			ISNULL(e.edit_count, 0) AS edit_count,
    			e.last_edit_dt,
    			a.member_number AS review_member_number
    from 		reader_reviews a
    LEFT OUTER JOIN (
    	SELECT reader_review_number, COUNT(*) AS edit_count, MAX(edited_dt) AS last_edit_dt
    	FROM   reader_review_edits
    	GROUP BY reader_review_number
    ) e ON e.reader_review_number = a.reader_review_number
    LEFT OUTER JOIN members m ON m.member_number = a.member_number,
    			books b
    where 		a.book_number IN (select distinct c.book_number from categories a, category_book_mapping b, book_author_mapping c where a.category_number = b.category_number and a.category_active_flag = 1 and b.book_number = c.book_number)
    and 		a.book_number = ?
    and 		a.reader_review_approved_flag = 1
    and 		a.book_number = b.book_number
    

	order by a.reader_review_rating DESC, a.reader_review_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_book_awards_by_book_id (Datasource=bookbrowse_com_new, Time=5ms, Records=0) in /root/website/queries/qry_get_book_awards_by_book_id.cfm @ 19:51:31.031
select 		c.book_awards_category_number, c.book_awards_category_name, c.book_awards_category_sort_order,
				m.book_awards_mapping_number, m.book_award_dt,
                a.book_award_number, a.book_award_image, a.book_award_name
                
                
	from 		book_awards_mapping m
	inner join 	book_awards_category c on c.book_awards_category_number = m.book_awards_category_number
    inner join	book_awards a on a.book_award_number = c.book_award_number
    
	where 		m.book_number = ?
    
    order by	c.book_awards_category_sort_order ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_bb_runner_ups (Datasource=bookbrowse_com_new, Time=8ms, Records=0) in /root/website/queries/qry_get_book_awards_by_book_id.cfm @ 19:51:31.031
select	book_number
    
    from	category_book_mapping a, categories b, top_categories t
    
    where	t.top_category_number = b.top_category_number
    and		b.category_number = a.category_number
    and		t.top_category_number = 9
    and		a.book_number = ?
    and		b.category_visible_flag = 1
	and		a.book_number not in (	select book_number 
    									from 		book_awards_mapping m
													inner join 	book_awards_category c on c.book_awards_category_number = m.book_awards_category_number
    												inner join	book_awards a on a.book_award_number = c.book_award_number
                                    	where m.book_number = ? 
                                    	and a.book_award_number = 7)
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817
Parameter #2(CF_SQL_INTEGER) = 4817

get_liked_by_book_id (Datasource=bookbrowse_com_new, Time=17ms, Records=6) in /root/website/queries/qry_get_liked_by_book_id.cfm @ 19:51:31.031
SELECT 		b.book_title, b.book_number,
    			c.book_title "referenced_book_title", c.book_number AS "liked_book_number", c.book_short_summary as "liked_short_summary",
            	e.*,
                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 "author_name",
				(select top 1 edition_publish_dt from editions where editions.book_number = c.book_number order by edition_publish_dt DESC) as 'sortdate',
				(select count(*) from book_author_mapping m where m.author_number = d.author_number)
				+
				(select count(*) from ezine_previews where ezine_preview_bb_author_link = d.author_number and ezine_preview_bb_link =0)
				 as 'liked_author_bookcount'
                
	FROM 		liked a
	INNER JOIN	books b ON b.book_number = a.book_number
	INNER JOIN	books c ON c.book_number = a.liked_book_number
	INNER JOIN	book_author_mapping d ON c.book_number = d.book_number
	INNER JOIN	authors e ON d.author_number = e.author_number
    
    WHERE 		a.book_number = ?
    
	ORDER BY 	sortdate desc, c.book_title
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_categories_by_book_id (Datasource=bookbrowse_com_new, Time=7ms, Records=11) in /root/website/queries/qry_get_categories_by_book_id.cfm @ 19:51:31.031
select 		distinct a.category_number, a.top_category_number, a.category_name, a.category_description, a.category_meta_keywords, a.category_active_flag, a.category_visible_flag, a.category_member_only_flag, a.category_qry_template, a.category_sort_order, a.category_tag_size,
    			b.*
	
    from 		categories a
	left join	top_categories b on a.top_category_number = b.top_category_number
	left join	category_book_mapping c on c.category_number = a.category_number
	
    where 		a.category_active_flag = 1
    and 		a.category_visible_flag = 1
	and 		c.book_number = ?
	

    order by 	b.top_category_sort_order, b.top_category_name, a.category_sort_order, a.category_name
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

bb_review (Datasource=, Time=0ms, Records=1) in /root/website/reviews/index.cfm @ 19:51:31.031
SELECT media_review, reviewer_number, media_review_rating from get_media_reviews_by_book_id where media_review_type_number = 9
get_arc_idfk (Datasource=bookbrowse_com_new, Time=10ms, Records=1) in /root/website/queries/qry_get_discussion_by_id.cfm @ 19:51:31.031
SELECT 		a.arc_forumidfk,a.discourse_flag
    FROM 		arcs a
    INNER JOIN 	ezine_previews e on e.ezine_preview_number = a.ezine_preview_number
    
	
        WHERE 		e.ezine_preview_bb_link = ? 
    AND DATALENGTH(a.arc_forumidfk) > 0 AND arc_obc_flag=1
Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 4817

get_arc_idfk_legacy (Datasource=bookbrowse_com_new, Time=7ms, Records=0) in /root/website/queries/qry_get_discussion_by_id.cfm @ 19:51:31.031
SELECT 		a.arc_forumidfk,a.discourse_flag
    FROM 		arcs a
    INNER JOIN 	ezine_previews e on e.ezine_preview_number = a.ezine_preview_number
    
	
        WHERE 		e.ezine_preview_bb_link = ? 
    AND DATALENGTH(a.arc_forumidfk) > 0 AND arc_obc_flag=1 AND a.discourse_flag = 0
Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 4817

obc_discussions (Datasource=booktalk_new, Time=216ms, Records=0) in /root/website/queries/qry_get_discussion_by_id.cfm @ 19:51:31.031
SELECT 		t.name,
                m.title, m.body,
                u.username, t.id,
				(SELECT COUNT(*) from booktalk_messages where threadidfk = t.id) AS	"responses"
                
    FROM 		booktalk_forums f
    INNER JOIN	booktalk_threads t on t.forumidfk = f.id
    INNER JOIN	booktalk_messages m on m.posted = t.lastpostcreated
    INNER JOIN	booktalk_users u on u.id = m.useridfk
    
    WHERE 	f.id = ?
    AND 	f.active = 1
	AND		t.active = 1
    
    ORDER BY t.name, t.messages DESC
Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) =

searchResults (Datasource=bookbrowse_com_new, Time=106ms, Records=28) in /root/website/queries/qry_get_discussion_by_id.cfm @ 19:51:31.031
SELECT book_number, post_id, topic_id, blurb, username, topic_title
					FROM DiscourseSearchResults
					
        WHERE 		book_number = ? 
                    AND topic_id IS NOT NULL
Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 4817

get_ezine_type (Datasource=bookbrowse_com_new, Time=41ms, Records=1) in /root/website/queries/qry_get_ezine_by_book_id.cfm @ 19:51:31.031
SELECT a.ezine_type_number
	FROM ezines a
	WHERE a.ezine_number = 1
get_ezine_by_book_id (Datasource=bookbrowse_com_new, Time=76ms, Records=1) in /root/website/queries/qry_get_ezine_by_book_id.cfm @ 19:51:32.032
SELECT TOP 1  
                a.ezine_short_title, a. ezine_boxed_content_title, a.ezine_boxed_content, a.ezine_review, a.ezine_review_2,
                b.edition_paperback_flag, b.edition_publish_dt, b.edition_isbn,
                c.book_title, c.book_sub_title, c.book_reading_guide, c.book_excerpt, c.book_number,
                e.author_first_name, e.author_middle_initial, e.author_last_name, e.author_number, 
                f.author_info_biography, 
                g.ezine_number, g.ezine_dt, g.ezine_bbsays_flag,
				i.article_category_number, i.article_category_name
		
	FROM    	ezine_edition_mapping AS a 
		
	INNER JOIN 	editions AS b ON (a.edition_number = b.edition_number)
	INNER JOIN 	books AS c ON (b.book_number = c.book_number )
	INNER JOIN 	book_author_mapping AS d ON (c.book_number = d.book_number )
	INNER JOIN 	authors AS e ON (d.author_number = e.author_number )
	INNER JOIN 	author_info AS f ON (e.author_number = f.author_number)
	INNER JOIN 	ezines AS g ON (a.ezine_number = g.ezine_number)
	LEFT JOIN	article_ezine_edition_mapping h ON h.ezine_edition_mapping_number = a.ezine_edition_mapping_number
	LEFT JOIN	article_categories i ON i.article_category_number = h.article_category_number

	WHERE		c.book_number = ?
	AND			g.ezine_bbsays_flag = 1
	AND			g.ezine_active_flag = 1
	
	
	ORDER BY 		g.ezine_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

check_permalink (Datasource=bookbrowse_com_new, Time=16ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 	count(*) as "count"
    FROM 	books
    WHERE 	book_number = ?
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 0

check_editors_choice (Datasource=bookbrowse_com_new, Time=1ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 	count(*) as "count"
    FROM 	books
    WHERE 	book_number = ?
    AND		book_number IN (SELECT		top 4 a.book_number
                            FROM		editors_choice a 
                            WHERE		editors_choice_dt < getdate()
                            ORDER BY	editors_choice_dt DESC)
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

check_free_ezine (Datasource=bookbrowse_com_new, Time=11ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 		count(*) as "count"
    FROM    	ezine_edition_mapping AS a
    INNER JOIN 	ezines b ON b.ezine_number = a.ezine_number
    INNER JOIN	editions c ON c.edition_number = a.edition_number
    WHERE 		c.book_number = ?
	AND			ezine_edition_free_review_flag = 1
	AND			dateadd(ww,4,b.ezine_dt) > getdate()
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

check_cat_73 (Datasource=bookbrowse_com_new, Time=7ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 		count(*) as "count"
    FROM    	books AS b
    INNER JOIN 	category_book_mapping AS c ON c.book_number = b.book_number
    WHERE 		b.book_number = ?
	AND			c.category_number = 73
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_ezine_status (Datasource=bookbrowse_com_new, Time=5ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 	top 1 g.ezine_active_flag, ezine_dt, book_title
FROM		ezine_edition_mapping AS a 
INNER JOIN	editions AS b ON (a.edition_number = b.edition_number)
INNER JOIN	books AS c ON (b.book_number = c.book_number)
INNER JOIN	ezines AS g ON (a.ezine_number = g.ezine_number)
WHERE		c.book_number = ?
ORDER BY	g.ezine_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

check_old_ezine (Datasource=bookbrowse_com_new, Time=3ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 		count(*) as "count"
    FROM    	ezine_edition_mapping AS a
    INNER JOIN 	ezines b ON b.ezine_number = a.ezine_number
    INNER JOIN	editions c ON c.edition_number = a.edition_number
    WHERE 		c.book_number = ?
	AND			datediff(mm,b.ezine_dt,getdate()) > 12
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_ezine_status (Datasource=bookbrowse_com_new, Time=10ms, Records=1) in /root/website/queries/qry_get_free_flag_by_book_id.cfm @ 19:51:32.032
SELECT 	top 1 g.ezine_active_flag, ezine_dt, book_title
FROM		ezine_edition_mapping AS a 
INNER JOIN	editions AS b ON (a.edition_number = b.edition_number)
INNER JOIN	books AS c ON (b.book_number = c.book_number)
INNER JOIN	ezines AS g ON (a.ezine_number = g.ezine_number)
WHERE		c.book_number = ?
ORDER BY	g.ezine_dt DESC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_coauthor (Datasource=bookbrowse_com_new, Time=7ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_coauthor (Datasource=bookbrowse_com_new, Time=7ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_coauthor (Datasource=bookbrowse_com_new, Time=11ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

existingResults (Datasource=bookbrowse_com_new, Time=97ms, Records=28) in /root/website/actions/udfs.cfm @ 19:51:32.032
SELECT id, last_updated
        FROM DiscourseSearchResults
        WHERE book_number = ?
        ORDER BY last_updated DESC
Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 4817

get_coauthor (Datasource=bookbrowse_com_new, Time=5ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_book_image (Datasource=bookbrowse_com_new, Time=7ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
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) = 4817

get_book_image (Datasource=bookbrowse_com_new, Time=5ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
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) = 4817

get_coauthor (Datasource=bookbrowse_com_new, Time=8ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_ads (Datasource=bookbrowse_com_new, Time=18ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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=4ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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_ads (Datasource=bookbrowse_com_new, Time=3ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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) = adzone3
Parameter #2(CF_SQL_VARCHAR) = 0
Parameter #3(CF_SQL_VARCHAR) = 0

get_ads (Datasource=bookbrowse_com_new, Time=3ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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) = adzone3

get_coauthor (Datasource=bookbrowse_com_new, Time=18ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4817

get_member_account_types (Datasource=bookbrowse_com_new, Time=2ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 19:51:32.032
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_ads (Datasource=bookbrowse_com_new, Time=3ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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) = adzone11
Parameter #2(CF_SQL_VARCHAR) = 0
Parameter #3(CF_SQL_VARCHAR) = 0

get_ads (Datasource=bookbrowse_com_new, Time=8ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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) = adzone11

get_member_account_types (Datasource=bookbrowse_com_new, Time=20ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 19:51:32.032
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_member_account_types (Datasource=bookbrowse_com_new, Time=8ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 19:51:32.032
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=6ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
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) = 4642

get_coauthor (Datasource=bookbrowse_com_new, Time=7ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4642

get_edition_info (Datasource=bookbrowse_com_new, Time=10ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 	f.edition_publish_dt "hardcover_publish_dt", f.edition_number_of_pages AS "hardcover_number_of_pages", f.edition_isbn13 "hardcover_isbn13", f.edition_publisher as "hardcover_publisher",
            g.edition_publish_dt "paperback_publish_dt", g.edition_number_of_pages AS "paperback_number_of_pages", g.edition_isbn13 "paperback_isbn13", g.edition_publisher as "paperback_publisher"
            
    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) = 4642

get_book_image (Datasource=bookbrowse_com_new, Time=6ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
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) = 4920

get_coauthor (Datasource=bookbrowse_com_new, Time=7ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4920

get_edition_info (Datasource=bookbrowse_com_new, Time=9ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 	f.edition_publish_dt "hardcover_publish_dt", f.edition_number_of_pages AS "hardcover_number_of_pages", f.edition_isbn13 "hardcover_isbn13", f.edition_publisher as "hardcover_publisher",
            g.edition_publish_dt "paperback_publish_dt", g.edition_number_of_pages AS "paperback_number_of_pages", g.edition_isbn13 "paperback_isbn13", g.edition_publisher as "paperback_publisher"
            
    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) = 4920

get_book_image (Datasource=bookbrowse_com_new, Time=10ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
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) = 4859

get_coauthor (Datasource=bookbrowse_com_new, Time=11ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 		book_number, 
            			CASE	WHEN datalength(d.author_middle_initial) > 1 
				                THEN d.author_first_name + ' ' + d.author_middle_initial + ' ' + d.author_last_name
				                ELSE d.author_first_name + ' ' + d.author_last_name
                        END "author",
                        d.author_number
            from		book_author_mapping e
            inner join	authors d ON e.author_number = d.author_number
            where		e.book_number = ?
			order by	book_author_mapping_number ASC
Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 4859

get_edition_info (Datasource=bookbrowse_com_new, Time=6ms, Records=1) in /root/website/actions/udfs.cfm @ 19:51:32.032
select 	f.edition_publish_dt "hardcover_publish_dt", f.edition_number_of_pages AS "hardcover_number_of_pages", f.edition_isbn13 "hardcover_isbn13", f.edition_publisher as "hardcover_publisher",
            g.edition_publish_dt "paperback_publish_dt", g.edition_number_of_pages AS "paperback_number_of_pages", g.edition_isbn13 "paperback_isbn13", g.edition_publisher as "paperback_publisher"
            
    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) = 4859

get_member_account_types (Datasource=bookbrowse_com_new, Time=10ms, Records=2) in /root/website/queries/qry_get_member_account_types.cfm @ 19:51:32.032
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=10ms, Records=0) in /root/website/queries/qry_get_arcs_for_ad.cfm @ 19:51:32.032
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=34ms, Records=3) in /root/website/queries/qry_get_arcs_for_ad.cfm @ 19:51:32.032
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=14ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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=8ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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=6ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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=5ms, Records=1) in /root/website/site/blocks/dsp_book_giveaway.cfm @ 19:51:32.032
select top 1 ezine_number, ezine_quote, ezine_quote_title
	    from ezines
	    where len(ezine_quote_title) > 1
	    order by newid()
get_ads (Datasource=bookbrowse_com_new, Time=5ms, Records=0) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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=6ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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=3ms, Records=1) in /root/website/adsystem/adsystem_mod.cfm @ 19:51:32.032
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/reviews/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=CFCLIENT_BOOKBROWSE=order%3Dp%23member%5Fnumber%3D0%23member%5Factive%5Fflag%3D0%23member%5Flogged%5Fin%5Fflag%3D0%23library%5Fuser%5Fflag%3D0%23view%3Dbooks%23; CFID=4072866; CFTOKEN=34b040631d952996-FBE9DB9A-EC24-C494-7794AA5A8E11F2FD; CFGLOBALS=urltoken%3DCFID%23%3D4072864%26CFTOKEN%23%3Df2f825d835b7ef17%2DFBE9D4F4%2DD90A%2D3590%2DF3096DCBEC351782%23lastvisit%3D%7Bts%20%272026%2D05%2D31%2019%3A51%3A30%27%7D%23hitcount%3D8%23timecreated%3D%7Bts%20%272026%2D05%2D31%2019%3A51%3A28%27%7D%23cftoken%3Daf4ba6d827ebcc39%2DFBE9D9D5%2DB3C2%2D3A3D%2D3F63BFD895BF4E41%23cfid%3D4072865%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=/book_number/4817/real-americans
PATH_TRANSLATED=/root/website/reviews/index.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=127.0.0.1
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/reviews/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=4072865
cftoken=af4ba6d827ebcc39-FBE9D9D5-B3C2-3A3D-3F63BFD895BF4E41
hitcount=13
lastvisit={ts '2026-05-31 19:51:32'}
library_user_flag=0
member_active_flag=0
member_logged_in_flag=0
member_number=0
order=p
timecreated={ts '2026-05-31 19:51:28'}
urltoken=CFID=4072866&CFTOKEN=34b040631d952996-FBE9DB9A-EC24-C494-7794AA5A8E11F2FD
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#=4072864&CFTOKEN#=f2f825d835b7ef17-FBE9D4F4-D90A-3590-F3096DCBEC351782#lastvisit={ts '2026-05-31 19:51:30'}#hitcount=8#timecreated={ts '2026-05-31 19:51:28'}#cftoken=af4ba6d827ebcc39-FBE9D9D5-B3C2-3A3D-3F63BFD895BF4E41#cfid=4072865#
CFID=4072866
CFTOKEN=34b040631d952996-FBE9DB9A-EC24-C494-7794AA5A8E11F2FD
Session Variables:
cfid=4072866
cftoken=34b040631d952996-FBE9DB9A-EC24-C494-7794AA5A8E11F2FD
sessionid=BOOKBROWSE_4072866_34b040631d952996-FBE9DB9A-EC24-C494-7794AA5A8E11F2FD
urltoken=CFID=4072866&CFTOKEN=34b040631d952996-FBE9DB9A-EC24-C494-7794AA5A8E11F2FD
URL Parameters:
book_number=4817
real-americans=
Debug Rendering Time: 10 ms