Invalid query:
Error Number: 1064
Error Message: 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 ') ORDER BY position LIMIT 0, 1' at line 3
Whole query: SELECT * FROM tbl_content WHERE active=1 AND IF (path <> "", CONCAT_WS("/", sectionname, path) = """, sectionname = """) ORDER BY position LIMIT 0, 1