postgresql7.1 select * from card_comment where ref_card = :card_id and ref_community = :community_id order by comment_id select * from card where ref_user= :user_id and ref_community= :community_id