Ahh I see that he corrected it:

Code:
  $q_menuitems = 'SELECT * FROM universitymenu'
                   . 'WHERE MenuCategoryID = %d';
That would join them to make $q_menuitems = 'SELECT * FROM universitymenuWHERE MenuCategoryID = %d';

I don't see how an error would mess that up, I would double check the code and make sure you fixed it. I have never had an error print out anything wrong like that.