You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and cat_right< order by `cat_left` asc' at line 1
текст запроса:
select * from fabric_cat where cat_left> and cat_right< order by `cat_left` asc