Error occured!

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 'NULL) AND `page_private` = '0' AND `page_type` = '1' AND `page_id` IN ('20','...' at line 1