Fixes #752 Invalid fulltext search terms results in MySQL error

Fixes #752