Hello i have the following query:
SELECT
cmfilm.*,
cmgenre.titel AS genretitel,
cmvertoning.*,
cmzaal.titel AS zaaltitel
FROM
cmfilm
LEFT JOIN cmvertoning ON cmvertoning.film_id=cmfilm.id
LEFT JOIN cmgenre ON cmfilm.genre_id=cmgenre.id
LEFT JOIN cmzaal ON cmvertoning.zaal_id=cmzaal.id
GROUP BY
cmfilm.titel
SORT BY
cmgenre.titel ASC
this doesnt seem to work, there is a problem with the sorting part, anyone know where the problem is?