$map = array('in',$cid); $list=$order->table("order a,user b")->where("a.jid=b.id and a.orderid='$map'")->select();