Add support for order by and limit on MySQL update queries.
Merge branch '4.0'