![]() |
where is ignored when like is used - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: where is ignored when like is used (/showthread.php?tid=23808) |
where is ignored when like is used - El Forum - 10-22-2009 [eluser]freshface[/eluser] Hey When i do something like this: Code: $prev_max = $this->db->select_max('slug')->like('slug',$slug,'after')->where('language_id',LANG_ID)->get('pages')->row()->slug; The where is ignored, how can i solve this? where is ignored when like is used - El Forum - 10-22-2009 [eluser]pistolPete[/eluser] Are you sure the WHERE condition is not included in the generated SQL? Please post the output of Code: echo ($this->db->last_query()); where is ignored when like is used - El Forum - 10-22-2009 [eluser]freshface[/eluser] Found it, i applied the where on the wrong query. |