's Albums

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 'AND (a.Access_type = 'Public' OR (a.password IS NOT NULL AND a.password !='')) ' at line 1 Query: SELECT COUNT(DISTINCT(a.Id)) as count FROM tblalbum a WHERE a.clientId = AND (a.Access_type = 'Public' OR (a.password IS NOT NULL AND a.password !='')) AND a.ImageCount > 0 URL: /all_albums User id: , ip: 38.107.179.229 referer: Trace: query_error(SELECT COUNT(DISTINCT(a.Id)) as count FROM tblalbum a WHERE a.clientId = AND (a.Access_type = 'Public' OR (a.password IS NOT NULL AND a.password !='')) AND a.ImageCount > 0 ) @ /home/picturepush/html/lib/util_func.inc.php:106 query(SELECT COUNT(DISTINCT(a.Id)) as count FROM tblalbum a WHERE a.clientId = AND (a.Access_type = 'Public' OR (a.password IS NOT NULL AND a.password !='')) AND a.ImageCount > 0 ) @ /home/picturepush/html/lib/album_func.php:326 getAlbum(, 1000, albumname asc, ) @ /home/picturepush/html/lib/api.inc.php:456 getAlbums(, 1000, albumname asc) @ : call_user_func_array(Array, Array) @ /home/picturepush/html/template.inc.php:527 _ml_call_func_array(api.getAlbums, Array, ML_Context) @ /home/picturepush/sites/default/templates/all_albums.cache:11 include(/home/picturepush/sites/default/templates/all_albums.cache) @ /home/picturepush/html/template.inc.php:47 render(all_albums, Array) @ /home/picturepush/html/td_driver.php:602 Error while retrieving data!