[ticket/11693] Change sql_build_array to support DELETE

PHPBB3-11693