OK, that tells me that the session UserID is not being set:
WHERE OrderUserID = -1
Add the following in the body to see what sessions are set:
<?php var_dump($_SESSION); ?>
you probably have a differant name for the session that contains the logged in users ID, this will write all session variables to the page so we can what the user id session in your application is.