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-05-17 18:53:29" AND start_deal <= "...' at line 1