[ticket/11938] remove deprecated sql_attr_str2ordinal and use sql_attr_string

http://tracker.phpbb.com/browse/PHPBB3-11938

@tested on my machine with sphinx running.

PHPBB3-11938