SELECT
....
GROUP BY
c.city_id
ORDER BY p.name desc
UNION
SELECT
...
GROUP BY
c.city_id, p
ERROR 1221 (HY000): Incorrect usage of UNION and ORDER BY
is there a way to have this format because i want the top query to have an orderby do i need to have the same orderby on the bottom query
The ORDER By comes at the end
what you can do if you want the first query to show up first is this