Notice: Undefined offset: 0 in /var/www/vhosts/ on line 52

Notice: Trying to get property of non-object in /var/www/vhosts/ on line 52

Regel: 149
Bestand: /var/www/vhosts/
Fout: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY volgorde DESC LIMIT 4' at line 1

SELECT fotoID, naam FROM fotos WHERE albumID = ORDER BY volgorde DESC LIMIT 4;l