Doctrine Query Where子句

问题描述

产生未知列错误 我有以下查询:
return Doctrine_Query::create()
         ->from(\'Model_Article m\')
         ->where($where)
         ->orderBy($order);
$where
中,我有这个:
$where=\'m.title=\'.$name;
以上产生此错误:
Message: SQLSTATE[42S22]: Column not found: 1054 Unknown column \'sadsa\' in \'where clause\'. Failing Query: \"SELECT COUNT(*) AS num_results FROM article a WHERE a.title = sadsa\"
为什么?     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)