Fix read/unread board icons in databases other than MySQL

Specifying the correct $identifier in $smcFunc['db_query']() for
fetching the board index. Board icons will now correctly reflect whether
or not there are any unread posts in all supported DBMSes.