Php amazon simpleDB查询

Php amazon simpleDB查询,php,amazon-simpledb,Php,Amazon Simpledb,我正在尝试在simpleDB上创建查询。以下是查询: select * from flyers where eventDate >= '20120101' and clubId= '0001' OR clubId = '0002' ORDER BY eventDate asc limit 20 问题在于: clubId= '0001' OR clubId = '0002' 我发现错误:[排序表达式无效。排序属性必须至少存在于一个谓词中,并且谓词不能包含is null运算符。] 如果可能

我正在尝试在simpleDB上创建查询。以下是查询:

select * from flyers where eventDate >= '20120101' and clubId= '0001' OR clubId = '0002' ORDER BY eventDate asc limit 20
问题在于:

clubId= '0001' OR clubId = '0002'
我发现错误:[排序表达式无效。排序属性必须至少存在于一个谓词中,并且谓词不能包含is null运算符。]


如果可能的话,我还希望能够将多达20'或's的链子连接在一起

,正如daan善意地指出的那样:

select * from flyers where eventDate >= '20120101' and clubId in('0001','0002') ORDER BY eventDate asc limit 20

尝试以下操作:
从eventDate>='20120101'的传单中选择*并按eventDate asc limit 20以('0001'、'0002')的顺序进行clubId。这能解决你的问题吗?