Reordering results

Reordering results

am 31.03.2006 19:55:18 von zac.carey

OK, strange one today -

The following query works perfectly on the command line (122 rows 0.03
sec), but returns 'Projects' as, for instance, '[BLOB - 4 Bytes]' when
issued in phpmyadmin.

This only occurs when I try to reorder the results (as shown in the
penultimate line)

Can anyone tell me how to get this query to work properly in
phpmyadmin?

SELECT client_name, COUNT( * ) AS cnt, GROUP_CONCAT(
projects.project_no
ORDER BY projects.project_no
SEPARATOR ', ' ) AS Projects
FROM projects_contacts
LEFT JOIN clients ON clients.client_id = projects_contacts.client_id
LEFT JOIN projects ON projects.project_id =
projects_contacts.project_id
GROUP BY projects_contacts.client_id
ORDER BY cnt DESC
LIMIT 0 , 300

Cheers