Time : 17:24:02 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND month = ?' at line 1 Raw SQL : SELECT * FROM totalweb_golf_bookingday WHERE AND month = :month Time : 17:24:02 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND month = ?' at line 1 Raw SQL : SELECT * FROM totalweb_golf_bookingday WHERE AND month = :month Time : 17:24:01 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND month = ?' at line 1 Raw SQL : SELECT * FROM totalweb_golf_bookingday WHERE AND month = :month Time : 17:24:01 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND month = ?' at line 1 Raw SQL : SELECT * FROM totalweb_golf_bookingday WHERE AND month = :month Time : 17:13:09 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2022-05-01' BETWEEN '2022-05-31'' at line 1 Raw SQL : UPDATE totalweb_golf_bookingday SET end = '10' WHERE bookingday_dt '2022-05-01' BETWEEN '2022-05-31' Time : 17:12:22 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2022-05-01' BETWEEN '2022-05-31'' at line 1 Raw SQL : UPDATE totalweb_golf_bookingday SET end = '10' WHERE bookingday_dt'2022-05-01' BETWEEN '2022-05-31'