WordPress database error: [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 user_id = 0 ORDER BY created_date ASC' at line 1]
select * from dev_appointments where id = and user_id = 0 ORDER BY created_date ASC

WordPress database error: [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 '' at line 1]
select * from wp_posts where id =