Sql ERROR: ErrID: 1064 ErrMsg: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 File: Aderlee_Path_03/_inc/gallery/public/displayCategory.php Line: 289 Query: SELECT `c`.`galloc`, `c`.`numcol`, `c`.`description`, `c`.`visible`, `c`.`thumbwidth`, `t`.`templateCategory`, `t`.`templateCSS` FROM `rawasy_gallery_categories` AS `c` LEFT JOIN `rawasy_gallery_template_types` AS `t` ON `t`.`id`=`c`.`template` WHERE `gallid`=