Yes i get one mistake, and i can't solve it. It was this:
and i searched this in my code and find this rows:
- // ------------------------------------
- // Count Pics
- // ------------------------------------
-
- $sql = "SELECT COUNT(pic_id) AS count
- FROM ". ALBUM_TABLE ."
- WHERE pic_cat_id = ". PERSONAL_GALLERY ."
- AND pic_user_id = $user_id";
- if( !($result = $db->sql_query($sql)) )
- {
- message_die(GENERAL_ERROR, 'Could not count pics', '', __LINE__, __FILE__, $sql);
- }
-
- $row = $db->sql_fetchrow($result);
-
- $total_pics = $row['count'];