I am using GROUP_CONCAT in mysql query but the query gives me unexpected and unknown result. This is the query:
SELECT GROUP_CONCAT( DISTINCT (categoryid) )
FROM jos_community_groups
WHERE team_classification
IN (
SELECT id
FROM jos_league_classification
ORDER BY winning_criteria ASC
)
AND show_in_contact =1
AND team_state = 'Georgia'
AND categoryid
IN (
SELECT sportstypeid
FROM jos_gsa_tournament
WHERE directorid =305
)
ORDER BY categoryid, team_agegroup, team_classification
The result is looking like this
GROUP_CONCAT( DISTINCT ( categoryid ) ) // column
[BLOB - 10B] // result
I want comma separated string of categoryid but I don't understand why query gives this type of result and what is missing in the query.