[ticket/12060] Use $sql_ary instead of $sql

PHPBB3-12060