I am trying to run Concat to autocomplete using an active CI record.
My request:
$this->db->select("CONCAT(user_firstname, '.', user_surname) AS name", FALSE); $this->db->select('user_id, user_telephone, user_email'); $this->db->from('users'); $this->db->where('name', $term);
I keep getting the MySQL error from this statement:
Error Number: 1054
Unknown column name 'in' where clause '
That's true, but I just created Concat in my article. I ideally need $ term to match the hidden name and last name fields.
Any ideas what I can do to improve this? I am considering just writing this as a flat MySQL Query ..
Thanks in advance
Stublacktt
source share