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