语法错误 - 数据库

时间:2015-03-16 08:45:14

标签: mysql joomla

有人可以告诉我这里的语法错误是什么:

SELECT T.id,T.vmProductID,T.name AS Course,C.title AS Category FROM j25_lms_tests AS T LEFT JOIN j25_lms_categories AS C ON C.id = T.catid WHERE T.published=1 AND T.vmProductID IN() ORDER BY T.ordering

这是脚本的主要代码: 'SELECT T.id,T.vmProductID,T.name AS Course,C.title AS Category FROM #__lms_tests AS T             LEFT JOIN #__lms_categories AS C ON C.id = T.catid             WHERE T.published = 1 AND T.vmProductID IN($ vmProductIds)$ Catwhere             ORDER BY T.ordering“;”

请有人告诉我代码有什么问题。

提前谢谢

1 个答案:

答案 0 :(得分:1)

IN子句没有值:

T.vmProductID IN()