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 `status` = 'active' WHERE (`previous_earnings_announcement` = '2019' at line 1
SELECT * FROM `symbols` AND `status` = 'active' WHERE (`previous_earnings_announcement` = '2019-10-25' OR `next_earnings_announcement` = '2019-10-25') AND `status` = 'active' ORDER BY market_capitalization desc LIMIT 10 OFFSET 0