, !!!
Try searching the profile table instead of the user table. In the profile table, the name field is indexed, so your operator will need to change a little:
SELECT id, username, name, pic_square FROM profile WHERE contains('alfredo artiles') and type='user'
Contains not case sensitivity, but strpos. You can still use the lower and strpos, but you will also have a special character problem. Contains a solution.
You can find all the fields of the profile table in facebook doc :
Hope this helps!
source
share