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 ') AND main_cat = 1 AND (end_deal >= "2026-09-29 20:48:17" AND start_deal <= "...' at line 1