string(476) "SELECT `gallery_folder`.*, COUNT(`gallery`.`id`) as `count`, COUNT(`children_folders`.`id`) as `folder_count` FROM `gallery_folder` LEFT JOIN `gallery` ON `gallery`.`folder_id`=`gallery_folder`.`id` LEFT JOIN `gallery_folder` as `children_folders` ON `gallery_folder`.`id`=`children_folders`.`parent` WHERE `gallery_folder`.`active`=1 AND `gallery_folder`.`language`=0 AND `gallery_folder`.`parent`=%3Cbr%3E GROUP BY `gallery_folder`.`id` ORDER BY `gallery_folder`.`sort` DESC" string(223) "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 '%3Cbr%3E GROUP BY `gallery_folder`.`id` ORDER BY `gallery_folder`.`sort` DESC' at line 1"