Error:

The MariaDB database returned an error while processing your request.

The SQL statement was: SELECT book.book_id, book.boat, details.berths, location.hirebase, grade.newgrade, details.boat, details.type, details.description, details.berths, details.waiverordeposit, details.damagewaiver, details.fuel, details.toilets, details.showers, details.wifi, details.240v, details.pets, location.map, boatphone.allinclusive, book.startdate, calendar.day, book.enddate, endday.endday, book.price, book.saver, book.price, book.saver, book.saver, details.extras, boatphone.exchangerate, book.price, book.saver, book.price, book.saver, book.saver, book.price, boatphone.exchangerate, book.price, book.saver, details.extras, book.price, details.extras, boatphone.exchangerate, book.price, book.price, book.saver, specialoffer.specialoffer, specialoffer.operatoroffer FROM book LEFT OUTER JOIN boatphone ON book.company = boatphone.company LEFT OUTER JOIN specialoffer ON book.offer = specialoffer.offer LEFT OUTER JOIN endday ON book.enddate = endday.enddate LEFT OUTER JOIN grade ON book.class = grade.class LEFT OUTER JOIN calendar ON book.startdate = calendar.startdate LEFT OUTER JOIN details ON book.class = details.class LEFT OUTER JOIN location ON book.location = location.location WHERE ((UPPER(details.berths) LIKE UPPER('%\\%3E1%'))) AND book.enddate = \%3C'2022-09-01' AND ((UPPER(book.nights) LIKE UPPER('%3\\%20or\\%204\\%20or\\%207%'))) AND book.startdate = \%3E'2022-07-21' AND (((UPPER(book.boat) LIKE UPPER('%Casanova%'))) OR ((UPPER(book.boat) LIKE UPPER('%Lady Sophia%'))) OR ((UPPER(book.boat) LIKE UPPER('%Columbina%'))) OR ((UPPER(book.boat) LIKE UPPER('%Our Time%'))) OR ((UPPER(book.boat) LIKE UPPER('%Courageous%'))) OR ((UPPER(book.boat) LIKE UPPER('%Golden Princess%')))) AND ((UPPER(book.available) LIKE UPPER('%yes%'))) ORDER BY book.startdate ASC, details.berths ASC, RAND(3685155), RAND(3685155);

The database returned this: 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 '\%3C'2022-09-01' AND ((UPPER(book.nights) LIKE UPPER('%3\\%20or\\%204\\%20or\...' at line 1

Other info: Resource temporarily unavailable

$user_data{_cgifunction}=search
$user_data{details.berths}=%3E1
$user_data{book.enddate}=%3C01/09/22
$user_data{book.nights}=3%20or%204%20or%207
$user_data{book.startdate}=%3E21/07/22
$user_data{book.boat}=Casanova or Lady Sophia or Columbina or Our Time or Courageous or Golden Princess
$user_data{book.available}=yes
$user_data{_layout}=Waterways Holidays New