I am working on an open source project called PHP-Bouncer, and I\'m having issues with a MySQL Query I am writing for it. Basically we have three tables: BouncerRoles, PageI
You are probably joining a table with two tables on 1..n relationships, producing duplicate results.
Use either GROUP_CONCAT( DISTINCT ...) or
GROUP_CONCAT( DISTINCT ...)
Use two subqueries: in each one use GROUP_CONCAT() with group by on each of the 2 tables. Then join the two subqueries and the main table.
GROUP_CONCAT()