functions.php conditional tag – only show in single.php?

if ( is_single() && in_category('listings') ) { 

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