Я получаю эту ошибку
WordPress database error: [Illegal mix of collations (utf8mb4_unicode_520_ci,COERCIBLE) and (latin1_swedish_ci,NUMERIC) for operation '>=']
на моем рабочем сервере wp. Я изменил параметры сортировки всех таблиц и столбцов на utf8mb4_unicode_520_ci и все еще получаю сообщение об ошибке.
это запрос:
$this->db->get_results( $this->db->prepare( "SELECT i.driver_id, i.start_time, GROUP_CONCAT(it.item SEPARATOR '#!#') as items, GROUP_CONCAT(it.ID SEPARATOR ',') as items_ids FROM {$this->inspections_table} as i LEFT JOIN {$this->items_table} as it ON it.inspection_id = i.inspection_id WHERE it.seen = '%d' AND timestamp(i.start_date,i.start_time) <= '%s' AND i.end_date >= '%s' AND it.last_check <= '%s' AND '{$this->timenow}' >= DATE_SUB(i.start_time, INTERVAL 1 HOUR) GROUP BY i.driver_id", array(
0,
$this->now,
$this->curdate,
$this->fifteen_before
) ) );
Есть идеи, как это решить?
Спасибо