[ticket/12007] Default last_result to 0 instead of false

PostgreSQL does not map null/false to 0 and thus this variable causes
an error.
http://tracker.phpbb.com/browse/PHPBB3-12007

PHPBB3-12007