'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)' 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) URL: /all_albums User id: , ip: 38.103.63.58 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)) @ /home/picturepush/html/lib/util_func.inc.php:93 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)) @ /home/picturepush/html/lib/album_func.php:226 getAlbum(, 1000, albumname asc) @ /home/picturepush/html/lib/api.inc.php:348 getAlbums(, 1000, albumname asc) @ : call_user_func_array(Array, Array) @ /home/picturepush/html/template.inc.php:524 _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:540 Error while retrieving data!