SELECT * FROM calendar_categories WHERE status='active' ORDER BY nameUnknown column 'status' in 'where clause'