Query failed error#1064 : 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 'WHERE pp_use = '1' AND '2024-12-05' between pp_start_date and pp_end_date' at line 1(SELECT * FROM WHERE pp_use = '1' AND '2024-12-05' between pp_start_date and pp_end_date)