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 'ORDER BY created_date ASC' at line 1]
select * from dev_appointments_services where appointment_id = ORDER BY created_date ASC