de foutmelding is standaard:
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 'ORDER BY aanvraagdatum DESC' at line 1
<?php
$query1 = "SELECT id, DATE_FORMAT(aanvraagdatum,'%d-%m-%Y') AS datum FROM aanvraag WHERE gebruikerID = ".$userID." ORDER BY datum DESC";
$result1 = mysql_query($query1) or die (mysql_error());
?>
EDIT: userID heeft wel een waarde