SQL Error: 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 'AND `name` = '') ORDER BY `position`,`id` LIMIT 0, 1' at line 1 at /home/virtwww/w_tea-ru-ru_05d17a60/application/_common/models/RubricModel.php line 59
Array ( [code] => 1064 [message] => 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 'AND `name` = '') ORDER BY `position`,`id` LIMIT 0, 1' at line 1 [query] => SELECT SQL_CALC_FOUND_ROWS id,rubric,type,name,sef,announce,position,publish,created,sortby FROM rubric WHERE 1=1 AND `publish` = 1 AND (`id`<> AND `name` = '') ORDER BY `position`,`id` LIMIT 0, 1 [context] => /home/virtwww/w_tea-ru-ru_05d17a60/application/_common/models/RubricModel.php line 59 )