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