I'm trying to use $wpdb to pull the name of a catogory by it's ID, but it stops the php page generation every time. (ie. the source code ends there, in the middle of the page)
My line of code is: $name = $wpdb->get_var("SELECT cat_name FROM $wpdb->linkcategories WHERE cat_id=4");
...but it's failing on any call to get_var (for kicks and giggles I even copied the example straight out of the wpdb class reference page and got the same result.)
I'm working in functions.php in my theme directory. I also had some confusion with the guy who runs the server about file permissions earlier. Is that a possibile cause, when everything else seems to work fine?