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='64e8b7c21d715a5ec0ad9a2901f412a4'' at line 1