La query stampata è
	Codice PHP:
	
SELECT cc_category_description.name, cc_category.parent_id FROM cc_category INNER JOIN cc_category_description ON (cc_category.category_id = cc_category_description.category_id) WHERE cc_category_description.language_id = 2 AND cc_category.category_id = 65 
 
che ovviamente restituisce sia un valore per il campo "name" che per quello "parent_id".
Poi scoppia tutto in:
	codice:
	Warning:  mysql_query() expects parameter 2 to be resource, null given in...
Warning:  mysql_fetch_array() expects parameter 1 to be resource, null given in...
 
Sembrerebbe che il valore dle campo parent_id non venga passato, quando invece esso esiste.