fixed orders query for user profile page