Illegal mix of collations (latin2_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
SELECT t3.id_art, t3.id_kat, t3.tytul, t3.skrot, t3.pelny, t3.data_pub, t3.opcje, t3.id_album, t3.ocena, t3.ilosc_ocen, t3.ilosc_koment, k.nazwa as nazwa_kat FROM ((SELECT id_art, id_kat, tytul, skrot, pelny, data_pub, opcje, id_album, ocena, ilosc_ocen, ilosc_koment FROM artykuly a WHERE '2017-11-22 17:31:59'>=data_pub AND data_kon>='2017-11-22 17:31:59' AND blok=0 AND (a.id_kat IN (1, 3, 7, 15, 51, 52, 53) OR a.id_gr IN(3, 9)) AND (( LOWER(tytul) LIKE LOWER('%nasza%') AND LOWER(tytul) LIKE LOWER('%ostrołęka%') ) OR ( LOWER(skrot) LIKE LOWER('%nasza%') AND LOWER(skrot) LIKE LOWER('%ostrołęka%') ) OR ( LOWER(pelny) LIKE LOWER('%nasza%') AND LOWER(pelny) LIKE LOWER('%ostrołęka%') ) OR tagi LIKE '%nasza ostrołęka%') ) UNION (SELECT id_art, id_kat, tytul, skrot, pelny, data_pub, opcje, id_album, 0 as ocena, 0 as ilosc_ocen, 0 as ilosc_koment FROM artykuly_arch a WHERE '2017-11-22 17:31:59'>=data_pub AND data_kon>='2017-11-22 17:31:59' AND blok=0 AND (a.id_kat IN (1, 3, 7, 15, 51, 52, 53) OR a.id_gr IN(3, 9)) AND (( LOWER(tytul) LIKE LOWER('%nasza%') AND LOWER(tytul) LIKE LOWER('%ostrołęka%') ) OR ( LOWER(skrot) LIKE LOWER('%nasza%') AND LOWER(skrot) LIKE LOWER('%ostrołęka%') ) OR ( LOWER(pelny) LIKE LOWER('%nasza%') AND LOWER(pelny) LIKE LOWER('%ostrołęka%') ) OR tagi LIKE '%nasza ostrołęka%') )) as t3 LEFT JOIN artykuly_kat k USING(id_kat) ORDER BY data_pub DESC LIMIT 0, 25;

Fatal error: Call to a member function fetch_array() on a non-object in /home/eostroleka/domains/eostroleka.pl/public_html/luba/inc/klasy/db_mysql.class.php on line 236