Error when searching

App Versions

{
“erpnext”: “10.0.12”,
“frappe”: “10.0.12”
}

Route

Error Report

Traceback (most recent call last):
File “/home/zipscience/erp-zip-new/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/zipscience/erp-zip-new/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/zipscience/erp-zip-new/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/zipscience/erp-zip-new/apps/frappe/frappe/init.py”, line 939, in call
return fn(args, **newargs)
File “/home/zipscience/erp-zip-new/apps/frappe/frappe/utils/global_search.py”, line 355, in search
limit {start}, {limit}‘’'.format(start=start, limit=limit), text+"
", as_dict=True)
File “/home/zipscience/erp-zip-new/apps/frappe/frappe/database.py”, line 166, in sql
self._cursor.execute(query, values)
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/cursors.py”, line 165, in execute
result = self._query(query)
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/cursors.py”, line 321, in _query
conn.query(q)
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/connections.py”, line 860, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/connections.py”, line 1061, in _read_query_result
result.read()
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/connections.py”, line 1349, in read
first_packet = self.connection._read_packet()
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/connections.py”, line 1018, in _read_packet
packet.check_error()
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/connections.py”, line 384, in check_error
err.raise_mysql_exception(self._data)
File “/home/zipscience/erp-zip-new/env/lib/python2.7/site-packages/pymysql/err.py”, line 107, in raise_mysql_exception
raise errorclass(errno, errval)
ProgrammingError: (1064, u"syntax error, unexpected $end, expecting FTS_TERM or FTS_NUMB or ‘*’")

Request Data

{
“type”: “POST”,
“args”: {
“text”: “backup”,
“start”: 0,
“limit”: 100,
“doctype”: “”,
“cmd”: “frappe.utils.global_search.search”
},
“url”: “/”
}

Screenshot-2018-1-22 Desktop

Hello,
this error happened when doing search.
I have drop help table on mysql and run bench setup-help again but still got this error

Seems like a mysql issue. Drop the help table and setup using bench setup-global-help