You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND d.is_active = 1 GROUP BY l.object_id ORDER BY d.id DESC LIMIT 0,5' at line 1 in SELECT d.* FROM doc_books d INNER JOIN `logs` l ON d.id = l.object_id where uid= AND d.is_active = 1 GROUP BY l.object_id ORDER BY d.id DESC LIMIT 0,5

array (
  0 => 
  array (
    'file' => '/data2/domains/bigschool.vn/blib.bigschool.vn/v1/core/DBO.php',
    'line' => 670,
    'function' => 'query',
    'class' => 'DBO',
    'object' => 
    DBO::__set_state(array(
       'db_connect_id' => 
      mysqli::__set_state(array(
         'affected_rows' => NULL,
         'client_info' => NULL,
         'client_version' => NULL,
         'connect_errno' => NULL,
         'connect_error' => NULL,
         'errno' => NULL,
         'error' => NULL,
         'error_list' => NULL,
         'field_count' => NULL,
         'host_info' => NULL,
         'info' => NULL,
         'insert_id' => NULL,
         'server_info' => NULL,
         'server_version' => NULL,
         'stat' => NULL,
         'sqlstate' => NULL,
         'protocol_version' => NULL,
         'thread_id' => NULL,
         'warning_count' => NULL,
      )),
       'db_result' => false,
       'free_results' => 
      array (
      ),
       'query_time' => NULL,
       'errorCode' => 1064,
       'showErrorMsg' => true,
       'sqlserver' => '127.0.0.1',
       'sqluser' => 'bigschool',
       'sqlpassword' => 'qSQov1V8oCKbZveO',
       'dbname' => 'bigschool_lib',
    )),
    'type' => '->',
    'args' => 
    array (
      0 => 'SELECT d.* FROM doc_books d INNER JOIN `logs` l ON d.id = l.object_id where uid= AND d.is_active = 1 GROUP BY l.object_id ORDER BY d.id DESC LIMIT 0,5',
      1 => '',
    ),
  ),
  1 => 
  array (
    'file' => '/data2/domains/bigschool.vn/blib.bigschool.vn/v1/core/Doc.php',
    'line' => 680,
    'function' => 'fetch_all',
    'class' => 'DBO',
    'object' => 
    DBO::__set_state(array(
       'db_connect_id' => 
      mysqli::__set_state(array(
         'affected_rows' => NULL,
         'client_info' => NULL,
         'client_version' => NULL,
         'connect_errno' => NULL,
         'connect_error' => NULL,
         'errno' => NULL,
         'error' => NULL,
         'error_list' => NULL,
         'field_count' => NULL,
         'host_info' => NULL,
         'info' => NULL,
         'insert_id' => NULL,
         'server_info' => NULL,
         'server_version' => NULL,
         'stat' => NULL,
         'sqlstate' => NULL,
         'protocol_version' => NULL,
         'thread_id' => NULL,
         'warning_count' => NULL,
      )),
       'db_result' => false,
       'free_results' => 
      array (
      ),
       'query_time' => NULL,
       'errorCode' => 1064,
       'showErrorMsg' => true,
       'sqlserver' => '127.0.0.1',
       'sqluser' => 'bigschool',
       'sqlpassword' => 'qSQov1V8oCKbZveO',
       'dbname' => 'bigschool_lib',
    )),
    'type' => '->',
    'args' => 
    array (
      0 => 'SELECT d.* FROM doc_books d INNER JOIN `logs` l ON d.id = l.object_id where uid= AND d.is_active = 1 GROUP BY l.object_id ORDER BY d.id DESC LIMIT 0,5',
    ),
  ),
  2 => 
  array (
    'file' => '/data2/domains/bigschool.vn/exam.bigschool.vn/modules/Personal/forms/created.php',
    'line' => 233,
    'function' => 'getReadDocuments',
    'class' => 'Doc',
    'type' => '::',
    'args' => 
    array (
      0 => 'where uid=',
      1 => 0,
      2 => 5,
    ),
  ),
  3 => 
  array (
    'file' => '/data2/domains/bigschool.vn/blib.bigschool.vn/v1/core/Form.php',
    'line' => 369,
    'function' => 'draw',
    'class' => 'CreatedHome',
    'object' => 
    CreatedHome::__set_state(array(
       'errors' => '',
       'connection' => false,
       'get' => false,
       'user_home' => false,
       'name' => 'CreatedHome',
       'error_messages' => false,
       'succes_messages' => false,
       'errNum' => 0,
    )),
    'type' => '->',
    'args' => 
    array (
    ),
  ),
  4 => 
  array (
    'file' => '/data2/domains/bigschool.vn/blib.bigschool.vn/v1/core/Module.php',
    'line' => 27,
    'function' => 'on_draw',
    'class' => 'Form',
    'object' => 
    CreatedHome::__set_state(array(
       'errors' => '',
       'connection' => false,
       'get' => false,
       'user_home' => false,
       'name' => 'CreatedHome',
       'error_messages' => false,
       'succes_messages' => false,
       'errNum' => 0,
    )),
    'type' => '->',
    'args' => 
    array (
    ),
  ),
  5 => 
  array (
    'file' => '/data2/domains/bigschool.vn/blib.bigschool.vn/v1/core/Module.php',
    'line' => 33,
    'function' => 'draw',
    'class' => 'Module',
    'object' => 
    Personal::__set_state(array(
       'data' => 
      array (
        'id' => '50149',
        'module_id' => '5743',
        'region' => 'center',
        'module' => 
        array (
          'id' => '5743',
          'name' => 'Personal',
        ),
      ),
       'forms' => 
      array (
        0 => 
        CreatedHome::__set_state(array(
           'errors' => '',
           'connection' => false,
           'get' => false,
           'user_home' => false,
           'name' => 'CreatedHome',
           'error_messages' => false,
           'succes_messages' => false,
           'errNum' => 0,
        )),
      ),
    )),
    'type' => '->',
    'args' => 
    array (
    ),
  ),
  6 => 
  array (
    'file' => '/data2/domains/bigschool.vn/exam.bigschool.vn/_cache/pages/personal.php',
    'line' => 19,
    'function' => 'on_draw',
    'class' => 'Module',
    'object' => 
    Personal::__set_state(array(
       'data' => 
      array (
        'id' => '50149',
        'module_id' => '5743',
        'region' => 'center',
        'module' => 
        array (
          'id' => '5743',
          'name' => 'Personal',
        ),
      ),
       'forms' => 
      array (
        0 => 
        CreatedHome::__set_state(array(
           'errors' => '',
           'connection' => false,
           'get' => false,
           'user_home' => false,
           'name' => 'CreatedHome',
           'error_messages' => false,
           'succes_messages' => false,
           'errNum' => 0,
        )),
      ),
    )),
    'type' => '->',
    'args' => 
    array (
    ),
  ),
  7 => 
  array (
    'file' => '/data2/domains/bigschool.vn/blib.bigschool.vn/v1/core/EClass.php',
    'line' => 33,
    'args' => 
    array (
      0 => '/data2/domains/bigschool.vn/exam.bigschool.vn/_cache/pages/personal.php',
    ),
    'function' => 'require_once',
  ),
  8 => 
  array (
    'file' => '/data2/domains/bigschool.vn/exam.bigschool.vn/index.php',
    'line' => 117,
    'function' => 'Run',
    'class' => 'EClass',
    'type' => '::',
    'args' => 
    array (
    ),
  ),
)