Error Number: 1064
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 12
SELECT L.name AS catename,L.id AS lid,D.id,D.name AS destname FROM linecategory L LEFT JOIN destination D ON D.lid = L.id WHERE L.islock = 0 AND L.pid =
Filename: /var/www/kanghui/models/admin/lineCategoryModel.php
Line Number: 552