SQL
SELECT status.tid, status.id, status.description, types.description AS name FROM status LEFT JOIN types ON status.tid = types.id ORDER BY status.tid AND status.description
which works, however I don't want to order by the status.id
I want to order by types.description, however if I replace status.tid with that it doesn't order at all
If I replace it by name (because the query says to return the field as name) it says the field doesn't exist
Any ideas how to achieve what I want? I've attached a dump of the tables
<edit>Just realised that doesn't even work as intended