Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/html/index.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/index.php:2) in /var/www/html/index.php on line 2
Database Error

A Database Error Occurred

Error Number: 1055

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 't.cpvs' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT substr(cpvs,1,3) as cpv, COUNT(id) as ilosc FROM ( SELECT id, cpvs FROM ogloszenia_2019_01 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_02 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_03 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_04 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_05 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_06 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_07 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_08 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_09 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_10 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_11 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%' UNION ALL SELECT id, cpvs FROM ogloszenia_2019_12 WHERE cpvs NOT LIKE 'c3432%' AND cpvs LIKE '%c3432%') t GROUP BY substr(cpv,1,3)

Filename: models/Raporty_model.php

Line Number: 179