Hi, i got a problem in my query with phalcon 2.0.2 subquery in column is not working..
Error
PhalconException: Syntax error, unexpected token SELECT, near to ' count(id_midias)
Query
$phl = "SELECT m.,mg., (SELECT id_midias from \Apps\Models\MidiasXGalerias where id_galerias = mg.id) as total FROM \Apps\Models\MidiasGalerias AS mg LEFT JOIN \Apps\Models\Midias AS m ON m.id = mg.id_midias WHERE mg.id IN (SELECT id_midias from \Apps\Models\MidiasXGalerias where id_galerias = mg.id), mg.tipo = 'midia'";