diff --git a/src/SearchDrivers/BaseSearchDriver.php b/src/SearchDrivers/BaseSearchDriver.php index 152c755..d4f5557 100755 --- a/src/SearchDrivers/BaseSearchDriver.php +++ b/src/SearchDrivers/BaseSearchDriver.php @@ -158,8 +158,10 @@ abstract class BaseSearchDriver implements SearchDriverInterface * @param $name * @return string */ - protected function sanitizeColumnName( $name ){ - $name = trim($name, '` '); + protected function sanitizeColumnName($name) + { + $name = str_replace('.', '`.`', trim($name, '` ')); + return "`${name}`"; }