![]() |
Problem with a db query - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Problem with a db query (/showthread.php?tid=7497) |
Problem with a db query - El Forum - 04-11-2008 [eluser]Unknown[/eluser] I have a problem with one query. I have this code: Code: $this->db->select("f.*, (SELECT GROUP_CONCAT (CONCAT(p.nome, ' ', p.cognome) SEPARATOR ', ') but the above code return me the following error: Quote:An Error Was Encountered the query reported in the error message don't have problem in phpmyadmin. I also tried with the following code: Code: $sql = "SELECT f.*, (SELECT GROUP_CONCAT (CONCAT(p.nome, ' ', p.cognome) SEPARATOR ', ') but return me the same error. Where is the problem? PS: excuse me for my english. I hope you can understand what i wrote. Problem with a db query - El Forum - 04-11-2008 [eluser]Unknown[/eluser] Ok, i have found the solution. The problem was the blank space between "GROUP_CONCAT" and "(". When i leave that space it's ok. |