发生了一个数据库错误

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 'and type=2 and action='add' and fromwhere=1 order by createtime limit 3' at line 3

SELECT * FROM (`orders`) WHERE `mid` = and type=2 and action='add' and fromwhere=1 order by createtime limit 3

Filename: D:\wwwroot\WWW\enstylement20160804\system\database\DB_driver.php

Line Number: 330