In albumcp.php
PHP Code:
$images = $DB_site->query("
SELECT customprofilepic.*, user.username
FROM " . TABLE_PREFIX . "customprofilepic
LEFT JOIN " . TABLE_PREFIX . "user
USING (userid)
ORDER BY username
Should be:
PHP Code:
$images = $DB_site->query("
SELECT " . TABLE_PREFIX . "customprofilepic.*, " . TABLE_PREFIX . "user.username
FROM " . TABLE_PREFIX . "customprofilepic
LEFT JOIN " . TABLE_PREFIX . "user
USING (userid)
ORDER BY username
Also, similar problem in album.php in both select statements.