SQL: select * from categories where catid = '4' order by category select * from categories where catid = '66' and topcatid = '4'