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

SELECT gender.Name, loyalty.Name, race.Name, LocName, LocType, tblcharacters.* FROM (((tblcharacters INNER JOIN tblraces AS loyalty ON tblcharacters.Loyalty = loyalty.Id) INNER JOIN tblraces AS race ON tblcharacters.Race = race.Id) INNER JOIN tblgender AS gender ON tblcharacters.Gender = gender.Id) INNER JOIN tbl_char_loc_description ON tblcharacters.Id = tbl_char_loc_description.CharID WHERE tblcharacters.Id =

Failed at (1)