public function get_random($type) { return $this->get_listing($this->db->from('custom_listings')->where($type.' !=', '')->orderby(NULL, 'RAND()')->limit(1)->get()->current()->mls_number); }