I wrote a query and it works fine locally but sadly the MYSQL I need to run it on is not on 8 but on 5 and the below query fails because it does support:
(row