SQL ERROR 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 '' at line 1
select k.IRYOKIKANNAME, k.ZIPCODE, k.ADDRESS1, k.ADDRESS2, k.MAP, k.TEL, k.FAX, k.INCHONAME, k.TANTONAME, k.URLFLG, k.URL, k.MAIL, s.TIME0201, s.TIME0202, s.TIME0203, s.TIME0204, s.TIME0205, s.TIME0206, s.TIME0207, s.TIME0208, s.TIME0209, s.TIME0210, s.TIME0211, s.TIME0212, s.TIME0213, s.TIME0214, s.TIME0215, s.TIME0216, s.TIME0217, s.TIME0218, s.TIME0219, s.TAISEI0301, s.TAISEI0302, s.TAISEI0303, s.TAISEI0304, s.TAISEI0305, s.TAISEI0306, s.MENDAN0401, s.MENDAN0402, s.MENDAN0403, s.MENDAN0404, s.MENDAN0405, s.MENDAN0406, s.MENDAN0407, s.KAIGI0501, s.KAIGI0502, s.KAIGI0503, s.CANFA0601, s.CANFA0602, s.APO0701, s.COMMENT, s.UPDATEDATE from TBL_KIHON_DENTAL k inner join TBL_DENTAL s on k.SEQ = s.SEQ where k.SEQ =