Критическая ошибка.

Illegal mix of collations for operation '<='

QUERY: select c.name, i.show, i.menu, i.exists from `base_names_cashe`c left join base_items i on i.id=c.item_id where c.`date`<='1981-10-П' and c.item_id=148707 and i.del='0' order by c.`date` desc

DatabaseException Object
(
[message:protected] => Illegal mix of collations for operation '<='

QUERY: select c.name, i.show, i.menu, i.exists from `base_names_cashe`c left join base_items i on i.id=c.item_id where c.`date`<='1981-10-П' and c.item_id=148707 and i.del='0' order by c.`date` desc
[string:Exception:private] => exception 'DatabaseException' with message 'Illegal mix of collations for operation '<='

QUERY: select c.name, i.show, i.menu, i.exists from `base_names_cashe`c left join base_items i on i.id=c.item_id where c.`date`<='1981-10-П' and c.item_id=148707 and i.del='0' order by c.`date` desc' in /var/www/footballfacts.ru/engine/lib/database.php:277
Stack trace:
#0 /var/www/footballfacts.ru/engine/lib/database.php(422): execute_query('select c.name, ...', Resource id #4)
#1 /var/www/footballfacts.ru/engine/lib/database.php(382): elgg_query_runner('select c.name, ...', '', true)
#2 /var/www/footballfacts.ru/mod/base/views/default/block/functions.php(179): get_data_row('select c.name, ...')
#3 /var/www/footballfacts.ru/mod/base/lib/textor/txt1.php(95): getgorodstrana('148707', 119, '1981-10-??', 0, false, 'all', true)
#4 /var/www/footballfacts.ru/mod/base/pages/viewcashe.php(169): include_once('/var/www/footba...')
#5 /var/www/footballfacts.ru/mod/base/start.php(899): include('/var/www/footba...')
#6 [internal function]: base_page_handler(Array, 'players')
#7 /var/www/footballfacts.ru/engine/lib/pagehandler.php(50): call_user_func('base_page_handl...', Array, 'players')
#8 /var/www/footballfacts.ru/engine/handlers/page_handler.php(46): page_handler('players', '148707-permyako...')
#9 {main}
[code:protected] => 0
[file:protected] => /var/www/footballfacts.ru/engine/lib/database.php
[line:protected] => 277
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /var/www/footballfacts.ru/engine/lib/database.php
[line] => 422
[function] => execute_query
[args] => Array
(
[0] => select c.name, i.show, i.menu, i.exists from `base_names_cashe`c left join base_items i on i.id=c.item_id where c.`date`<='1981-10-П' and c.item_id=148707 and i.del='0' order by c.`date` desc
[1] => Resource id #4
)

)

[1] => Array
(
[file] => /var/www/footballfacts.ru/engine/lib/database.php
[line] => 382
[function] => elgg_query_runner
[args] => Array
(
[0] => select c.name, i.show, i.menu, i.exists from `base_names_cashe`c left join base_items i on i.id=c.item_id where c.`date`<='1981-10-П' and c.item_id=148707 and i.del='0' order by c.`date` desc
[1] =>
[2] => 1
)

)

[2] => Array
(
[file] => /var/www/footballfacts.ru/mod/base/views/default/block/functions.php
[line] => 179
[function] => get_data_row
[args] => Array
(
[0] => select c.name, i.show, i.menu, i.exists from `base_names_cashe`c left join base_items i on i.id=c.item_id where c.`date`<='1981-10-П' and c.item_id=148707 and i.del='0' order by c.`date` desc
)

)

[3] => Array
(
[file] => /var/www/footballfacts.ru/mod/base/lib/textor/txt1.php
[line] => 95
[function] => getgorodstrana
[args] => Array
(
[0] => 148707
[1] => 119
[2] => 1981-10-П
[3] => 0
[4] =>
[5] => all
[6] => 1
)

)

[4] => Array
(
[file] => /var/www/footballfacts.ru/mod/base/pages/viewcashe.php
[line] => 169
[args] => Array
(
[0] => /var/www/footballfacts.ru/mod/base/lib/textor/txt1.php
)

[function] => include_once
)

[5] => Array
(
[file] => /var/www/footballfacts.ru/mod/base/start.php
[line] => 899
[args] => Array
(
[0] => /var/www/footballfacts.ru/mod/base/pages/viewcashe.php
)

[function] => include
)

[6] => Array
(
[function] => base_page_handler
[args] => Array
(
[0] => Array
(
[0] => 148707-permyakov-artyom-
)

[1] => players
)

)

[7] => Array
(
[file] => /var/www/footballfacts.ru/engine/lib/pagehandler.php
[line] => 50
[function] => call_user_func
[args] => Array
(
[0] => base_page_handler
[1] => Array
(
[0] => 148707-permyakov-artyom-
)

[2] => players
)

)

[8] => Array
(
[file] => /var/www/footballfacts.ru/engine/handlers/page_handler.php
[line] => 46
[function] => page_handler
[args] => Array
(
[0] => players
[1] => 148707-permyakov-artyom-
)

)

)

[previous:Exception:private] =>
)