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='6b5a2d3988d86d1d50e1e60a33ccddb5'' at line 1