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='8a6dc8b59ee0a9c31c1ca74dcc641c4d'' at line 1