public function lastIndexOf($string, $offset = 0)
 {
     if ($string instanceof Query) {
         return $string->lastIndexIn($this);
     } else {
         return parent::lastIndexOf($string, $offset);
     }
 }