206,213c206,207
<     $results = db_query("SELECT fc.*, ffm.message FROM {flag_content} fc LEFT JOIN {flag_friend_message} ffm ON ffm.fcid = fc.fcid WHERE fc.fid = :fc_fid AND fc.content_type = :fc_content_type AND fc.content_id = :fc_content_id", 
<     	array(
<     		':fc_fid' => $flag->fid,
<     		':fc_content_type' => $content_type, 
<     		':fc_content_id' => $content_id
<     	)
<     )->fetchAll();
<     foreach ($results as $new_flag) {
---
>     $results = db_query("SELECT fc.*, ffm.message FROM {flag_content} fc LEFT JOIN {flag_friend_message} ffm ON ffm.fcid = fc.fcid WHERE fc.fid = :fc.fid AND fc.content_type = :fc.content_type AND fc.content_id = :fc.content_id", array(':fc.fid' => $flag->fid, ':fc.content_type' => $content_type, ':fc.content_id' => $content_id))->fetchAll();
>     foreach ($result as $new_flag) {
