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