SELECT a.id,a.dwCatId,a.dwName,a.dwWebPath,a.dwIntro,a.dwLastEditTime,a.dwVersion,a.dwFileSize,a.dwLogoPic,a.dwRelateTag,b.catParentId,b.catName FROM `dwlib` a LEFT JOIN `dwcat` b ON a.dwCatId = b.id WHERE a.id in() AND a.isshow = 1 order by a.recommend desc,a.dwLastEditTime desc limit 50
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 ') AND a.isshow = 1 order by a.recommend desc,a.dwLastEditTime desc limit 50' at line 1