Fixed query bug in movies and ebooks controllers.