i've used GROUP_CONCAT to get results splitted by comma (,
), but when i saw, the GRUP_CONCAT
returned only 205 splitted numbers, but in the database there's 2448 results (different aid
). Here is my query:
SELECT GROUP_CONCAT(`aid`) As favoriti
FROM `z_web_favoriti`
WHERE `kup_id`='1' AND `pos_id`='571'
When i execute:
SELECT DISTINCT `aid`
FROM `z_web_favoriti`
WHERE `kup_id`='1' AND `pos_id`='571'
I get the following result: Showing rows 0 - 29 (2448 total,..)
Anyone has some solution why it isn't working? I've searched on stackoverflow for similar problem, but i couldn't find it..