How to add filter in custom rss feed

As you can see from the source is_feed takes a parameter, so you should be able to restrict the query by using $query->is_feed('custom_rss2').

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