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='0c07e99931d0d0dc1b7091e9a2d31b4a'' at line 1