Syntax error in file: /home/bayar23/public_html/gallery/lib/adodb/drivers/adodb-mysql.inc.php
                                       ADONewConnection(mysql) % line  214, file: GalleryStorage.class
                                    GalleryStorage._getConnection() % line  469, file: GalleryStorage.class
                                 GalleryStorage.search(
	    SELECT
	      [GalleryGroup::id],
	      [GalleryGroup::groupName]
	    FROM
	      [GalleryUserGroupMap], [GalleryGroup]
..., Array[1], Array[1]) % line  202, file: Gallery.class
                              Gallery.search(
	    SELECT
	      [GalleryGroup::id],
	      [GalleryGroup::groupName]
	    FROM
	      [GalleryUserGroupMap], [GalleryGroup]
..., Array[1], Array[1]) % line  105, file: GalleryUserGroupHelper_simple.class
                           GalleryUserGroupHelper_simple.fetchGroupsForUser(5, null, null) % line 1876, file: GalleryCoreApi.class
                        GalleryCoreApi.fetchGroupsForUser(5) % line   64, file: GalleryPermissionHelper_simple.class
                     GalleryPermissionHelper_simple._fetchAccessListIds(core.view, 5, 0) % line   39, file: GalleryPermissionHelper_simple.class
                  GalleryPermissionHelper_simple.fetchAccessListIds(core.view, 5, 0) % line  501, file: GalleryCoreApi.class
               GalleryCoreApi.fetchAccessListIds(core.view, 5, 0) % line   76, file: GalleryUserHelper_simple.class
            GalleryUserHelper_simple.hasItemPermission(7, core.view, 5, false) % line  566, file: GalleryCoreApi.class
         GalleryCoreApi.hasItemPermission(7, core.view, 5, false) % line  618, file: GalleryView.class
      GalleryView.setCacheControl(Object:GalleryTemplate) % line  252, file: GalleryView.class
   GalleryView.doLoadTemplate(Object:GalleryTemplate) % line  465, file: main.php
_GalleryMain(false) % line  104, file: main.php
GalleryMain() % line   88, file: main.php
                        ADONewConnection(mysql) % line  214, file: GalleryStorage.class
                     GalleryStorage._getConnection() % line  564, file: GalleryStorage.class
                  GalleryStorage.getMapEntry(GalleryUserGroupMap, Array[1], Array[2], Array[1]) % line 2912, file: GalleryCoreApi.class
               GalleryCoreApi.getMapEntry(GalleryUserGroupMap, Array[1], Array[2], Array[1]) % line   68, file: GalleryUserGroupHelper_simple.class
            GalleryUserGroupHelper_simple.isUserInGroup(5, 3) % line   46, file: GalleryUserGroupHelper_simple.class
         GalleryUserGroupHelper_simple.isUserInSiteAdminGroup(null) % line 1776, file: GalleryCoreApi.class
      GalleryCoreApi.isUserInSiteAdminGroup() % line  700, file: GalleryView.class
   GalleryView._permissionCheck(Object:GalleryStatus) % line  467, file: main.php
_GalleryMain(false) % line  104, file: main.php
GalleryMain() % line   88, file: main.php
                           ADONewConnection(mysql) % line  214, file: GalleryStorage.class
                        GalleryStorage._getConnection() % line  564, file: GalleryStorage.class
                     GalleryStorage.getMapEntry(GalleryUserGroupMap, Array[1], Array[2], Array[1]) % line 2912, file: GalleryCoreApi.class
                  GalleryCoreApi.getMapEntry(GalleryUserGroupMap, Array[1], Array[2], Array[1]) % line   68, file: GalleryUserGroupHelper_simple.class
               GalleryUserGroupHelper_simple.isUserInGroup(5, 3) % line   46, file: GalleryUserGroupHelper_simple.class
            GalleryUserGroupHelper_simple.isUserInSiteAdminGroup(null) % line 1776, file: GalleryCoreApi.class
         GalleryCoreApi.isUserInSiteAdminGroup() % line   48, file: ErrorPage.inc
      ErrorPageView.loadTemplate(Object:GalleryTemplate, Array[0]) % line  225, file: ErrorPage.inc
   ErrorPageView.errorHandler(Object:GalleryStatus, null) % line  691, file: main.php
_GalleryMain_errorHandler(Object:GalleryStatus, null) % line  106, file: main.php
GalleryMain() % line   88, file: main.php
                                                ADONewConnection(mysql) % line  214, file: GalleryStorage.class
                                             GalleryStorage._getConnection() % line  469, file: GalleryStorage.class
                                          GalleryStorage.search(
	    SELECT
	      [GalleryGroup::id],
	      [GalleryGroup::groupName]
	    FROM
	      [GalleryUserGroupMap], [GalleryGroup]
..., Array[1], Array[1]) % line  202, file: Gallery.class
                                       Gallery.search(
	    SELECT
	      [GalleryGroup::id],
	      [GalleryGroup::groupName]
	    FROM
	      [GalleryUserGroupMap], [GalleryGroup]
..., Array[1], Array[1]) % line  105, file: GalleryUserGroupHelper_simple.class
                                    GalleryUserGroupHelper_simple.fetchGroupsForUser(5, null, null) % line 1876, file: GalleryCoreApi.class
                                 GalleryCoreApi.fetchGroupsForUser(5) % line   64, file: GalleryPermissionHelper_simple.class
                              GalleryPermissionHelper_simple._fetchAccessListIds(core.view, 5, 1) % line   39, file: GalleryPermissionHelper_simple.class
                           GalleryPermissionHelper_simple.fetchAccessListIds(core.view, 5, 1) % line  501, file: GalleryCoreApi.class
                        GalleryCoreApi.fetchAccessListIds(core.view, 5, 1) % line   76, file: GalleryUserHelper_simple.class
                     GalleryUserHelper_simple.hasItemPermission(7, core.view, null, true) % line  566, file: GalleryCoreApi.class
                  GalleryCoreApi.hasItemPermission(7, core.view) % line  362, file: GalleryView.class
               GalleryView.getItem() % line  558, file: GalleryTemplate.class
            GalleryTemplate._getThemeId() % line  264, file: GalleryTemplate.class
         GalleryTemplate._initCompiledTemplateDir() % line  236, file: GalleryTemplate.class
      GalleryTemplate.display(themes/matrix/templates/error.tpl) % line  243, file: ErrorPage.inc
   ErrorPageView.errorHandler(Object:GalleryStatus, null) % line  691, file: main.php
_GalleryMain_errorHandler(Object:GalleryStatus, null) % line  106, file: main.php
GalleryMain() % line   88, file: main.php

Error

                        ADONewConnection(mysql) % line  214, file: GalleryStorage.class
                     GalleryStorage._getConnection() % line  564, file: GalleryStorage.class
                  GalleryStorage.getMapEntry(GalleryUserGroupMap, Array[1], Array[2], Array[1]) % line 2912, file: GalleryCoreApi.class
               GalleryCoreApi.getMapEntry(GalleryUserGroupMap, Array[1], Array[2], Array[1]) % line   68, file: GalleryUserGroupHelper_simple.class
            GalleryUserGroupHelper_simple.isUserInGroup(5, 3) % line   46, file: GalleryUserGroupHelper_simple.class
         GalleryUserGroupHelper_simple.isUserInSiteAdminGroup(null) % line 1776, file: GalleryCoreApi.class
      GalleryCoreApi.isUserInSiteAdminGroup() % line  252, file: ErrorPage.inc
   ErrorPageView.errorHandler(Object:GalleryStatus, null) % line  691, file: main.php
_GalleryMain_errorHandler(Object:GalleryStatus, null) % line  106, file: main.php
GalleryMain() % line   88, file: main.php
                     ADONewConnection(mysql) % line  214, file: GalleryStorage.class
                  GalleryStorage._getConnection() % line   69, file: GalleryStorageExtras.class
               GalleryStorageExtras._dbInit() % line   54, file: GalleryStorageExtras.class
            GalleryStorageExtras._getNonTransactionalDatabaseConnection() % line 1866, file: GalleryStorage.class
         MySqlStorage.getUniqueId(SequenceEventLog) % line   50, file: GalleryEventLogHelper_medium.class
      GalleryEventLogHelper_medium.addEventLogEntry(Gallery Error, ERROR_STORAGE_FAILURE, Error (ERROR_STORAGE_FAILURE)<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 217 (GalleryCoreApi::error) 
<b>...) % line 3312, file: GalleryCoreApi.class
   GalleryCoreApi.addEventLogEntry(Gallery Error, ERROR_STORAGE_FAILURE, Error (ERROR_STORAGE_FAILURE)<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 217 (GalleryCoreApi::error) 
<b>...) % line  697, file: main.php
_GalleryMain_errorHandler(Object:GalleryStatus, null) % line  106, file: main.php
GalleryMain() % line   88, file: main.php