SELECT * FROM oglo24_fields AS f LEFT JOIN oglo24_fields_categories AS fc ON f.id = fc.field_id AND fc.category_id IN (1045?page=4,-1) WHERE ((f.module = 'ANNOUNCEMENT' AND fc.category_id IN (1045?page=4,-1)) OR f.id IN (0)) AND f.id NOT IN (0) ORDER BY fc.order ASC Caught exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?page=4,-1) WHERE ((f.module = 'ANNOUNCEMENT' AND fc.category_id IN (1045?...' at line 2 array(4) { [0]=> array(7) { ["file"]=> string(71) "/home/platne/serwer321787/public_html/Oferso.pl/classes/mysql.class.php" ["line"]=> int(110) ["function"]=> string(7) "doQuery" ["class"]=> string(5) "MySQL" ["object"]=> object(Announcement)#22 (15) { ["value"]=> array(0) { } ["query"]=> object(mysqli_result)#147 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } ["row"]=> int(0) ["logs"]=> bool(false) ["perpage"]=> NULL ["sqlTable"]=> NULL ["sqlWhere"]=> NULL ["sqlOrder"]=> NULL ["sqlFullQuery"]=> string(535) "SELECT * FROM (SELECT ogl.id, ogl.title, ogl.city, ogl.city_rw FROM oglo24_announcement AS ogl LEFT JOIN oglo24_announcement_payments AS pay ON ogl.ident=pay.pay_ident LEFT JOIN oglo24_company AS comp ON comp.company_id = ogl.company_id WHERE ogl.status='ACCEPT' AND ogl.display = 'TRUE' AND (((pay.pay_create <= '2026-10-10' OR pay.pay_create IS NULL) AND pay.pay_expire >= '2026-10-10') OR ogl.forever = 'TRUE') AND comp.company_subdomain='megaczesci-pl' AND ogl.company_id='1005' AND ogl.category IN (2985) GROUP BY ogl.id ) AS x " ["thumbWidth"]=> int(110) ["thumbHeight"]=> int(97) ["fieldWidth"]=> array(12) { [1]=> string(2) "8%" [2]=> string(3) "17%" [3]=> string(3) "25%" [4]=> string(3) "33%" [5]=> string(3) "42%" [6]=> string(3) "50%" [7]=> string(3) "58%" [8]=> string(3) "67%" [9]=> string(3) "75%" [10]=> string(3) "83%" [11]=> string(3) "92%" [12]=> string(4) "100%" } ["false"]=> bool(false) ["now"]=> string(10) "2026-10-10" ["fieldsOnList"]=> array(0) { } } ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(272) "SELECT * FROM oglo24_fields AS f LEFT JOIN oglo24_fields_categories AS fc ON f.id = fc.field_id AND fc.category_id IN (1045?page=4,-1) WHERE ((f.module = 'ANNOUNCEMENT' AND fc.category_id IN (1045?page=4,-1)) OR f.id IN (0)) AND f.id NOT IN (0) ORDER BY fc.order ASC" } } [1]=> array(7) { ["file"]=> string(91) "/home/platne/serwer321787/public_html/Oferso.pl/modules/announcement/announcement.class.php" ["line"]=> int(4905) ["function"]=> string(8) "sqlQuery" ["class"]=> string(5) "MySQL" ["object"]=> object(Announcement)#22 (15) { ["value"]=> array(0) { } ["query"]=> object(mysqli_result)#147 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } ["row"]=> int(0) ["logs"]=> bool(false) ["perpage"]=> NULL ["sqlTable"]=> NULL ["sqlWhere"]=> NULL ["sqlOrder"]=> NULL ["sqlFullQuery"]=> string(535) "SELECT * FROM (SELECT ogl.id, ogl.title, ogl.city, ogl.city_rw FROM oglo24_announcement AS ogl LEFT JOIN oglo24_announcement_payments AS pay ON ogl.ident=pay.pay_ident LEFT JOIN oglo24_company AS comp ON comp.company_id = ogl.company_id WHERE ogl.status='ACCEPT' AND ogl.display = 'TRUE' AND (((pay.pay_create <= '2026-10-10' OR pay.pay_create IS NULL) AND pay.pay_expire >= '2026-10-10') OR ogl.forever = 'TRUE') AND comp.company_subdomain='megaczesci-pl' AND ogl.company_id='1005' AND ogl.category IN (2985) GROUP BY ogl.id ) AS x " ["thumbWidth"]=> int(110) ["thumbHeight"]=> int(97) ["fieldWidth"]=> array(12) { [1]=> string(2) "8%" [2]=> string(3) "17%" [3]=> string(3) "25%" [4]=> string(3) "33%" [5]=> string(3) "42%" [6]=> string(3) "50%" [7]=> string(3) "58%" [8]=> string(3) "67%" [9]=> string(3) "75%" [10]=> string(3) "83%" [11]=> string(3) "92%" [12]=> string(4) "100%" } ["false"]=> bool(false) ["now"]=> string(10) "2026-10-10" ["fieldsOnList"]=> array(0) { } } ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(272) "SELECT * FROM oglo24_fields AS f LEFT JOIN oglo24_fields_categories AS fc ON f.id = fc.field_id AND fc.category_id IN (1045?page=4,-1) WHERE ((f.module = 'ANNOUNCEMENT' AND fc.category_id IN (1045?page=4,-1)) OR f.id IN (0)) AND f.id NOT IN (0) ORDER BY fc.order ASC" } } [2]=> array(7) { ["file"]=> string(83) "/home/platne/serwer321787/public_html/Oferso.pl/modules/company/catalog.website.php" ["line"]=> int(147) ["function"]=> string(19) "getFieldsOfCategory" ["class"]=> string(12) "Announcement" ["object"]=> object(Announcement)#22 (15) { ["value"]=> array(0) { } ["query"]=> object(mysqli_result)#147 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } ["row"]=> int(0) ["logs"]=> bool(false) ["perpage"]=> NULL ["sqlTable"]=> NULL ["sqlWhere"]=> NULL ["sqlOrder"]=> NULL ["sqlFullQuery"]=> string(535) "SELECT * FROM (SELECT ogl.id, ogl.title, ogl.city, ogl.city_rw FROM oglo24_announcement AS ogl LEFT JOIN oglo24_announcement_payments AS pay ON ogl.ident=pay.pay_ident LEFT JOIN oglo24_company AS comp ON comp.company_id = ogl.company_id WHERE ogl.status='ACCEPT' AND ogl.display = 'TRUE' AND (((pay.pay_create <= '2026-10-10' OR pay.pay_create IS NULL) AND pay.pay_expire >= '2026-10-10') OR ogl.forever = 'TRUE') AND comp.company_subdomain='megaczesci-pl' AND ogl.company_id='1005' AND ogl.category IN (2985) GROUP BY ogl.id ) AS x " ["thumbWidth"]=> int(110) ["thumbHeight"]=> int(97) ["fieldWidth"]=> array(12) { [1]=> string(2) "8%" [2]=> string(3) "17%" [3]=> string(3) "25%" [4]=> string(3) "33%" [5]=> string(3) "42%" [6]=> string(3) "50%" [7]=> string(3) "58%" [8]=> string(3) "67%" [9]=> string(3) "75%" [10]=> string(3) "83%" [11]=> string(3) "92%" [12]=> string(4) "100%" } ["false"]=> bool(false) ["now"]=> string(10) "2026-10-10" ["fieldsOnList"]=> array(0) { } } ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> array(2) { [0]=> string(11) "1045?page=4" [1]=> string(2) "-1" } [1]=> bool(false) } } [3]=> array(4) { ["file"]=> string(59) "/home/platne/serwer321787/public_html/Oferso.pl/content.php" ["line"]=> int(253) ["args"]=> array(1) { [0]=> string(83) "/home/platne/serwer321787/public_html/Oferso.pl/modules/company/catalog.website.php" } ["function"]=> string(7) "include" } }