postgresql7.1
select :query as query
select 10 as the_score, message_id,
m.title, m.num_replies, to_char(m.sent_date,'MM/DD/YYYY') as sent_date,
p.first_names||' '||p.last_name as full_name
from bboard_messages_all m, persons p, bboard_forums f
where content like '%' || :query || '%'
and m.sender = p.person_id
and m.forum_id = :forum_id
and f.forum_id = m.forum_id
and f.bboard_id = :package_id