MySQL Error! Name: NoResult [SELECT b.board_id FROM boards AS b LEFT JOIN users AS u ON u.user_id=b.user_id LEFT JOIN currency AS cr ON cr.currency_id=b.currency_id LEFT JOIN locations AS l1 ON l1.location_id=b.location_id1 LEFT JOIN locations AS l2 ON l2.location_id=b.location_id2 LEFT JOIN locations AS l3 ON l3.location_id=b.location_id3 LEFT JOIN categories AS c1 ON c1.category_id=b.category_id1 LEFT JOIN categories AS c2 ON c2.category_id=b.category_id2 WHERE b.is_hide=0 AND (b.location_id1=137 OR b.location_id2=137) AND category_id1= AND b.is_top=1 AND b.board_top_from <= "2024-04-25" AND (b.board_top_to IS NULL OR b.board_top_to >= "2024-04-25") ORDER BY board_date_refresh DESC LIMIT 0,1000 ].
MySQL answer: 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 b.is_top=1 AND b.board_top_from <= "2024-04-25" AND (b.board_top_to IS N...' at line 8.