[ticket/9657] Correctly use " vs ' and variables in queries

PHPBB3-9657
[ticket/9657] Cast topic_id to integer

PHPBB3-9657
[ticket/9657] DO not use \" inside of double quotes

PHPBB3-9657
[ticket/9657] Add , to last element of an array

PHPBB3-9657
[ticket/9657] Fix labels on confirm_delete_body.html

PHPBB3-9657
[ticket/9657] Add new line after opening diff

PHPBB3-9657