you may prefer to write the query in that sort of format but you can save typing time by using an 'alias'
eg
Code:
SELECT
c.id,
c.listing,
c.catname,
s.catid,
s.subcat,
s.listings,
s.url
FROM
categories AS c
LEFT JOIN
subcategories AS s
ON
c.id=s.catid
ORDER BY
c.catname,s.subcat
ASC
and I find this helps with 'seeing' where commas have run away and hidden somewhere.
Code:
SELECT
c.id
, c.listing
, c.catname
, s.catid
, s.subcat
, s.listings
, s.url
FROM
categories AS c
LEFT JOIN
subcategories AS s
ON
c.id=s.catid
ORDER BY
c.catname,s.subcat
ASC