SQL: select * from categories where catid = '5' order by category select * from categories where topcatid = '5' order by category