Fatal error: Uncaught CDbException: CDbCommand не удалось исполнить SQL-запрос: CDbCommand не удалось подготовить SQL-запрос: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'order by created_date DESC' at line 1. The SQL statement executed was: SELECT * FROM `tbl_baskets_lists` `t` WHERE user_id = order by created_date DESC in /var/www/uniel/data/www/framework/yiilite.php:9596 Stack trace: #0 /var/www/uniel/data/www/framework/yiilite.php(9519): CDbCommand->queryInternal('fetchAll', Array, Array) #1 /var/www/uniel/data/www/framework/yiilite.php(8043): CDbCommand->queryAll() #2 /var/www/uniel/data/www/framework/yiilite.php(8112): CActiveRecord->query(Object(CDbCriteria), true) #3 /var/www/uniel/data/www/app/apps/frontend/modules/content/controllers/BasketController.php(490): CActiveRecord->findAll('user_id = orde...') #4 /var/www/ in /var/www/uniel/data/www/framework/yiilite.php on line 9596