Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php SuiteCRM API V8电话搜索_Php_Mysql_Suitecrm - Fatal编程技术网

Php SuiteCRM API V8电话搜索

Php SuiteCRM API V8电话搜索,php,mysql,suitecrm,Php,Mysql,Suitecrm,我正在尝试通过套件API将SuiteRM连接到3CX 因此,我首先尝试的是通过电话号码搜索帐户 https://URL/suitecrm/Api/V8/module/Contacts?fields[Contacts]=id&filter[operator]=or&filter[phone_home][eq]=XXXXXXXXX&filter[phone_mobile][eq]=XXXXXXXXX&filter[phone_work][eq]=XXXXXXXXX&a

我正在尝试通过套件API将SuiteRM连接到3CX

因此,我首先尝试的是通过电话号码搜索帐户

https://URL/suitecrm/Api/V8/module/Contacts?fields[Contacts]=id&filter[operator]=or&filter[phone_home][eq]=XXXXXXXXX&filter[phone_mobile][eq]=XXXXXXXXX&filter[phone_work][eq]=XXXXXXXXX&filter[phone_other][eq]=XXXXXXXXX
测试它,系统给出了

"errors": {
   "status": 400,
   "title": null,
   "detail": "Database failure. Please refer to suitecrm.log for details."
    }
}Database failure. Please refer to suitecrm.log for details.
在我的套房里

Mon Oct 12 20:57:37 2020 [][][FATAL] Mysqli_query failed.
Mon Oct 12 20:57:37 2020 [][][FATAL] Error retrieving Contact list:  Query Failed:  SELECT  contacts.id , contacts.assigned_user_id  FROM contacts  LEFT JOIN contacts_cstm ON contacts.id = contacts_cstm.id_c  where (contacts.phone_home = 'XXXXXXXXX' OR contacts.phone_mobile = 'XXXXXXXXX' OR contacts.phone_work = 'XXXXXXXXX' OR contacts.phone_other = 'XXXXXXXXX' OR contacts.deleted = '0') AND contacts.deleted=0 LIMIT 0,-98: MySQL error 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 '-98' at line 1
如果我在mySQL中运行查询时没有
98
,那么一切都正常(没有result.s..limit=0,但没有错误)。 我认为错误出现在查询的末尾
-98
:但我不知道是什么原因造成的! 有人有同样的问题吗?
谢谢

错误消息非常清楚,SQL语法也很清楚-LIMIT只接受一个参数。查询已中断。如果这不是您的代码,请向各自的所有者报告。谢谢!我联系套件论坛,试图找到一个解决方案!错误消息非常清楚,SQL语法也是如此-LIMIT只接受一个参数。查询已中断。如果这不是您的代码,请向各自的所有者报告。谢谢!我联系套件论坛,试图找到一个解决方案!