[ticket/11693] Change sql_build_array to support DELETE

PHPBB3-11693
Merge pull request #2075 from Elsensee/ticket/11693

[ticket/11693] Change sql_build_array to support DELETE