in reply to MySQL does not like me today...

Somebody once told me that those suffixes at the end of variables actually are helpful, and they turned out to help me find this typo. (I think it's a typo, maybe it's what is supposed to happen.)

$pword_q = $dbh->quote($pword_q);

    -Bryan