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-02-11 05:46:27" AND start_deal <= "...' at line 1