Fatal error: Uncaught exception 'CDbException' with message 'CDbCommand failed to execute the SQL statement: 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 'LIMIT 1' at line 1. The SQL statement executed was: SELECT * FROM `activity_photos` `t` WHERE activity_id= LIMIT 1' in /home2/havasaz/yagmurmebel.az/yii/framework/yiilite.php:8980 Stack trace: #0 /home2/havasaz/yagmurmebel.az/yii/framework/yiilite.php(8907): CDbCommand->queryInternal('fetch', Array, Array) #1 /home2/havasaz/yagmurmebel.az/yii/framework/yiilite.php(7461): CDbCommand->queryRow() #2 /home2/havasaz/yagmurmebel.az/yii/framework/yiilite.php(7525): CActiveRecord->query(Object(CDbCriteria)) #3 /home2/havasaz/yagmurmebel.az/yagmurmebel/protected/controllers/MehsullarController.php(179): CActiveRecord->find(Array) #4 [internal function]: MehsullarController->actionView('342') #5 /home2/havasaz/yagmurmebel.az/yii/framew in /home2/havasaz/yagmurmebel.az/yii/framework/yiilite.php on line 8980