@bcworkz, thank you. Before doing everything you suggested I decided to try changing something in my code.
And I found solution!
The solution was to use ‘category_name’ instead of ‘category’. I still don’t know why it was broken (perhaps the true reason lies in your answer).
Anyway thank you for help!