Hi everyone (hope the title is right, my english is rusted sometimes)
I did a search function, it work for my "code" infos, my company names, but i need to search for email, that are in a json entry, i did it like this :
$sql = 'SELECT SQL_CALC_FOUND_ROWS * FROM ' . $this->table . ' AS s
WHERE ((s.code LIKE :q)
OR (s.company_name LIKE :q)
OR (JSON_EXTRACT(s.contacts, "$.email") LIKE :q))';
Where is my mistake?
$.emaillooks forcontactsreally ought to be another table. Would save you a lot of headaches like this one.