select parent.title,parent.cateno from breed_store_category as node,breed_store_category as parent where node.lft between parent.lft and parent.rgt and node.cateno = order by parent.depth


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by parent.depth' at line 1