1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and CHAR_LENGTH(TRIM(naziv)) > 0 order by sort' at line 1 (SQL: 'select naziv naziv, tip, perma perma from platforma where platforma_id= and CHAR_LENGTH(TRIM(naziv)) > 0 order by sort')