var dataInitial = '2012-11-01 00:00:00';
var dataFinal = '2012-11-02 22:00:00';
var strOrders = stmt.executeQuery('SELECT orders_id, date_purchased FROM zen_orders
WHERE orders_status
IN (3, 48, 49, 53) AND last_modified
BETWEEN ' + dataInicial + ' AND ' + dataFinal);
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行 (linha 12) 的“00:00:00 AND 2012-11-02 22:00:00”附近使用正确的语法
此查询适用于 PHP :(