SELECT *,category_name AS name FROM u_categories WHERE enabled=1 AND category_id= AND 1=1 ORDER BY category_priority