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='84041b78e83a1d0327df0e3dfd7271b8'' at line 1