1064: 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 ord' at line 1
select id,title as name from stk_cat_razd where pid= order by ord
index.php| m('app'), func.php| myApp::__construct(), app.php| myApp::preparePage(Array), app.php| myModul::gen('indexAction'), modul.php| myCat::indexAction(Array), cat.php| myController::show('index', Array), controller.php| require('/home/u11244/stk-msk.ru/www/application/modules/cat/templates/index.php'), index.php| myForm::gen_dbselect('rid', Array), form.php| myElements::GenDbSelect('rid[]', 'select id,title as name from _add_cat_razd where pid= order by ord', Array), elements.php| mymySqli::q1('select id,title as name from _add_cat_razd where pid= order by ord'), mysqli.php| mymySqli::genError('select id,title as name from stk_cat_razd where pid= order by ord')