in reply to catalyst Arbitary query

You can also make it more terse/idiomatic like so–

my $friend_rs = $c->model("DB::Metrics") ->search({}, { bind => ["raja"] });

Catalyst's DBIC model rolls up the resultsets for you.

(Update: corrected embarrassing typo.)