[#31910] Missing order clause in update and delete query (Fix #1885)