I have tried the double quote also, no difference.
A real space instead of SPACE(1) either.
Both columns firstname and lastname are there if I use them alone.
The first one return an error (look like a bug with inserting `` on field ‘lastname’):
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `user` WHERE (`isAdmin`='') AND (`status`=10)' at line 1
The SQL being executed was: SELECT `id`, CONCAT(firstname, SPACE(1), `lastname)` AS `full1name` FROM `user` WHERE (`isAdmin`='') AND (`status`=10)
The second one return only the ‘id’ without error.
So I tried to force the insert of `` myself like:
OK, I found out the problem. I had a getFullName() attribute that was doing it’s magic job
So leaving the select() with ‘id, firstname, lastname’ did the job on the array::map(‘id’, ‘fullname’).
Except for the `` handling on the select() side issue.