Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1140 In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column 'w3.pj.content_id'; this is incompatible with sql_mode=only_full_group_by in /var/www/html/vendor/zendframework/zend-db/src/Adapter/Driver/Pdo/Statement.php:239 Stack trace: #0 /var/www/html/vendor/zendframework/zend-db/src/Adapter/Driver/Pdo/Statement.php(239): PDOStatement->execute() #1 /var/www/html/vendor/nomondaypl/nm-db/src/Sql/Select.php(22): Zend\Db\Adapter\Driver\Pdo\Statement->execute() #2 /var/www/html/vendor/zendframework/zend-paginator/src/Paginator.php(882): Nm\Db\Sql\Select->count() #3 /var/www/html/vendor/zendframework/zend-paginator/src/Paginator.php(558): Zend\Paginator\Paginator->_calculatePageCount() #4 /var/www/html/vendor/nomondaypl/nm-news/src/Collection/News.php(260): Zend\Paginator\Paginator->setItemCountPerPage(6) #5 /var/www/html/vendor/nomondaypl/nm-news/src/Controller/CategoryController.php(84): News\Collect in /var/www/html/vendor/zendframework/zend-db/src/Adapter/Driver/Pdo/Statement.php on line 244