Fatal error: Uncaught exception 'Florido_Exception' with message 'error querying database: 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 t.translation' at line 17 with SQL: SELECT c.categoryID, IF( t.translation IS NULL, ten.translation, t.translation ) as name, IF( t2.translation IS NULL, ten2.translation, t2.translation ) as topcat FROM Categories AS c LEFT JOIN Translations AS t ON t.`id` = c.categoryID AND t.`table` = "Categories" AND t.`field` = "name" AND t.languageID = 2 LEFT JOIN Translations AS ten ON ten.`id` = c.categoryID AND ten.`table` = "Categories" AND ten.`field` = "name" AND ten.languageID = 2 LEFT JOIN Categories AS c2 ON c2.categoryID = c.parentID LEFT JOIN Translations AS t2 ON t2.`id` = c2.categoryID AND t2.`table` = "Categories" AND t2.`field` = "name" AND t2.languageID = 2 LEFT JOIN Translations AS ten2 ON ten2. in /home/yellowadv/domains/yellowpages-curacao.com/public_html/modules/framework/Database.class.php on line 172