How to get parent category ID in single page template

I’m solved, by using:

$category[0]->parent

Thanks anyway.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)