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 basketSession='94aee697bac133d2a08501b746f9f34e'' at line 1