Cannot execute SELECT * FROM `pages` WHERE (`parent` = OR `id` = ) AND `live` = 1 AND `show` = 1 AND (`members` = 0 OR `members` = 1) ORDER BY `order` because 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 'OR `id` = ) AND `live` = 1 AND `show` = 1 AND (`members` = 0 OR `members` = 1) O' at line 1