Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 12288 bytes) in /var/www/framework/db/CDbCommand.php on line 496