Add LIMIT and ORDER BY to MySQL query grammer for deletes

This addition adds LIMIT and ORDER BY to SQL generated when doing a delete when using MySQL. This is valid according to https://dev.mysql.com/doc/refman/5.0/en/delete.html.

This is in reference to my origin issue report at #4040.