I always make it a habit of explicitly stating the alias in all my
queries like so:

SELECT `Chassis`.`a.equipment_id` FROM (select
`Chassis`.`equipment_id` from chassis as `Chassis` group by
`Chassis`.`equipment_id` LIMIT 3);

Which should give you an array like no matter which mysql/PHP version
you use:
Array
(
    [0] => Array
        (
            [Chassis] => Array
                (
                    [equipment_id] => 1
                )

        )
)


Winston


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to