In line 322 there's:

$result = db_query("SELECT created FROM guestbook WHERE recipient = '%s' AND created > '%d'",

that should be changed in

$result = db_query("SELECT created FROM {guestbook} WHERE recipient = '%s' AND created > '%d'",

to work correctly with prefixed tables.

Comments

hba’s picture

Assigned: Unassigned » hba

Thanks for the report. It is fixed in 4.5 and 4.6 now.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Uwe Hermann’s picture

Status: Fixed » Closed (fixed)