Fixed bug #10086: Core uses deprecated function t3lib_db->sql()