Zenphoto encountered an error

MySQL Query ( SELECT * FROM `zp_albums` WHERE `parentid`= ) failed. MySQL returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Backtrace:

					
   -> query (class-gallery.php [665])
     -> Gallery->sortAlbumArray (class-album.php [344])
       -> Album->getAlbums (class-album.php [362])
         -> Album->getNumAlbums (template-functions.php [458])
           -> getNumAlbums (template-functions.php [4296])
             -> setThemeColumns (index.php [191])