Query: select `cal_to`, `cal_from`, `title_est` from `nvm_news` where (`type` = 'event') and ((`cal_from` >= and `cal_from` < 2678400) or (`cal_to` != 0 and `cal_to` >= and `cal_to` < 2678400) or (`cal_to` != 0 and `cal_from` < and `cal_to` >= 2678400)) and (`visible` = 'yes' or (`visible` = 'period' and `public` < '1529789009' and (`remove` = 0 or `remove` >= '1529789009'))) and `title_est` != ''
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and `cal_from` < 2678400) or (`cal_to` != 0 and `cal_to` >= and `cal_to` < 2678' at line 1