Caught exception: In line 79 File: /home/dzliteracki/ftp/DBMySQLi.phpQuery: SET NAMES latin2 Caught exception: In line 79 File: /home/dzliteracki/ftp/DBMySQLi.phpQuery: SELECT DISTINCT LEFT(lastname,6) AS kod, LEFT(lastname,6) AS litera FROM tab_authors WHERE ORD(LEFT(lastname,1)) = 38 UNION ALL SELECT DISTINCT ORD(UPPER(LEFT(lastname,1))) AS kod, UPPER(LEFT(lastname,1)) AS litera FROM tab_authors WHERE ORD(LEFT(lastname,1)) != 38 ORDER BY litera