diff --git a/src/Adapter/MySQLAdapter.php b/src/Adapter/MySQLAdapter.php index bfd6323..33bf4fa 100755 --- a/src/Adapter/MySQLAdapter.php +++ b/src/Adapter/MySQLAdapter.php @@ -246,7 +246,10 @@ public function prepareStatement($query, $options, $limit, $offset) $objectsTable, $objectsTable ); - + // fix for the mysqli >= 5.7 only_full_group_by bug + if($this->connection->server_version >= 50700) { + $this->connection->query("SET SESSION sql_mode=''"); + } $query = sprintf( 'SELECT %s FROM %s as rootContents