$sql_from may be a string here, you should change its initialization (https://github.com/lucifer4o/phpbb/blob/develop-ascraeus/phpBB/memberlist.php#L1028)